rpi-userland: set rpath properly.

This commit is contained in:
Juan RP 2016-02-09 18:34:56 +01:00
parent 9323e237ea
commit fdc3141998
1 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ _gitshort="${_githash:0:7}"
pkgname=rpi-userland
version=20160205
revision=1
revision=2
wrksrc="userland-${_githash}"
build_style=cmake
hostmakedepends="cmake"
@ -15,7 +15,7 @@ homepage="https://github.com/raspberrypi/userland"
distfiles="https://github.com/raspberrypi/userland/archive/${_githash}.tar.gz"
checksum=5c25eb4de5feb11fdf74d58779f4cc615cda6623b81648ae15ae5e4ddf94c5ce
LDFLAGS="-Wl,--no-as-needed"
LDFLAGS="-Wl,--no-as-needed -Wl,-rpath /opt/vc/lib"
only_for_archs="armv6l armv6l-musl armv7l armv7l-musl"
@ -37,14 +37,14 @@ shlib_provides="
libGLESv2.so
libEGL.so"
post_extract() {
mkdir -p /opt/vc/lib
}
post_install() {
vmkdir usr/lib/pkgconfig
vcopy ${FILESDIR}/*.pc usr/lib/pkgconfig
rm -rf ${DESTDIR}/etc
rm -rf ${DESTDIR}/opt/vc/share
vmkdir etc/ld.so.conf.d
echo "/opt/vc/lib" > ${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
}
rpi-userland-devel_package() {