SDL2: add -rpath=/opt/vc/lib on rpi archs

This commit is contained in:
Michael Gehring 2017-10-02 11:38:21 +00:00
parent 98841e67aa
commit a4bd8c61df
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'SDL2'
pkgname=SDL2
version=2.0.6
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-alsa --disable-esd --disable-rpath --enable-libudev
--enable-clock_gettime --disable-nas --disable-arts --disable-x11-shared
@ -35,7 +35,7 @@ if [ "$build_option_gles" ]; then
# RaspberryPi, use Videocore IV
makedepends+=" rpi-userland-devel"
CFLAGS="-I${XBPS_CROSS_BASE}/opt/vc/include -I${XBPS_CROSS_BASE}/opt/vc/include/interface/vcos/pthreads"
LDFLAGS="-L${XBPS_CROSS_BASE}/opt/vc/lib"
LDFLAGS="-L${XBPS_CROSS_BASE}/opt/vc/lib -Wl,-rpath=/opt/vc/lib"
;;
*)
# libGLESv2.so.2 is dynamically loaded with dlopen.