aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorConn O'Griofa2017-10-16 17:50:42 +0100
committerConn O'Griofa2017-10-17 03:16:50 +0000
commitad6150e00ce4b9f142680e781d2a899ea8e40838 (patch)
tree9531892cd1f458bc94ec54f6d8433e40e1e068ba /configure
parent0e4ad31902f206e2c6945632bb1f558eae941ff1 (diff)
downloadpcsx_rearmed-ad6150e00ce4b9f142680e781d2a899ea8e40838.tar.gz
pcsx_rearmed-ad6150e00ce4b9f142680e781d2a899ea8e40838.tar.bz2
pcsx_rearmed-ad6150e00ce4b9f142680e781d2a899ea8e40838.zip
RPI: add Mesa override & update vendor library names
* Update RPI vendor library names to allow compatibility with recent firmwares that have obsoleted the originally named duplicate libraries. * Add override to build against VC4 Mesa driver via "VIDEOCORE=no"
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index 4d9b566..c3ff68f 100755
--- a/configure
+++ b/configure
@@ -442,13 +442,14 @@ EOF
fi
# check for VideoCore stuff for Raspberry Pi
-if [ -d /opt/vc/include -a -d /opt/vc/lib ]; then
+if [ -d /opt/vc/include -a -d /opt/vc/lib -a "$VIDEOCORE" != "no" ]; then
CFLAGS_GLES="$CFLAGS_GLES -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
LDLIBS_GLES="$LDLIBS_GLES -L/opt/vc/lib"
if [ -f /opt/vc/lib/libbcm_host.so ]; then
LDLIBS_GLES="$LDLIBS_GLES -lbcm_host"
fi
need_xlib="yes"
+ VIDEOCORE="yes"
fi
# check for GLES headers
@@ -459,7 +460,10 @@ int main(void) {
return (int)eglGetDisplay( (EGLNativeDisplayType)0 );
}
EOF
-if compile_binary $CFLAGS_GLES -lEGL -lGLES_CM $LDLIBS_GLES; then
+if [ "$VIDEOCORE" = "yes" ] && compile_binary $CFLAGS_GLES -lbrcmEGL -lbrcmGLESv2 $LDLIBS_GLES; then
+ have_gles="yes"
+ LDLIBS_GLES="-lbrcmEGL -lbrcmGLESv2 $LDLIBS_GLES"
+elif compile_binary $CFLAGS_GLES -lEGL -lGLES_CM $LDLIBS_GLES; then
have_gles="yes"
LDLIBS_GLES="-lEGL -lGLES_CM $LDLIBS_GLES"
elif compile_binary $CFLAGS_GLES -lEGL -lGLESv1_CM $LDLIBS_GLES; then