Browse Source

Support latest raspberry GLES library name

Chips-fr 6 years ago
parent
commit
9c0ac97043
2 changed files with 7 additions and 8 deletions
  1. 7 1
      Makefile
  2. 0 7
      README

+ 7 - 1
Makefile

@@ -69,7 +69,13 @@ endif
 ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","rpi1" "rpi2"))
 ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","rpi1" "rpi2"))
 CFLAGS += -DHAVE_GLES -DRASPBERRY
 CFLAGS += -DHAVE_GLES -DRASPBERRY
 CFLAGS += -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads/ -I/opt/vc/include/interface/vmcs_host/linux/
 CFLAGS += -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads/ -I/opt/vc/include/interface/vmcs_host/linux/
-LDFLAGS += -ldl -lbcm_host -L/opt/vc/lib -lEGL -lGLESv2
+LDFLAGS += -ldl -lbcm_host -L/opt/vc/lib
+# Stupid renaming occured in latest raspbian...
+ifneq (,$(wildcard /opt/vc/lib/libbrcmGLESv2.so))
+LDFLAGS += -lbrcmEGL -lbrcmGLESv2
+else
+LDFLAGS += -lEGL -lGLESv2
+endif
 OBJS += platform/linux/emu.o platform/linux/blit.o # FIXME
 OBJS += platform/linux/emu.o platform/linux/blit.o # FIXME
 OBJS += platform/common/plat_sdl.o
 OBJS += platform/common/plat_sdl.o
 OBJS += platform/libpicofe/plat_sdl.o platform/libpicofe/in_sdl.o
 OBJS += platform/libpicofe/plat_sdl.o platform/libpicofe/in_sdl.o

+ 0 - 7
README

@@ -12,10 +12,3 @@ then taken over and expanded by notaz.
 
 
 PicoDrive was the first emulator ever to properly emulate Virtua Racing and
 PicoDrive was the first emulator ever to properly emulate Virtua Racing and
 it's SVP chip.
 it's SVP chip.
-
-How to compile on Raspbian Wheezy:
-
-export CC=gcc-4.8
-export CXX=g++-4.8
-./configure --platform=rpi2
-make