lynx: fix for PIE

Patch configure to use the correct $CC_FOR_BUILD,
$CFLAGS_FOR_BUILD and $LDFLAGS_FOR_BUILD to build
host binaries (makeutcb).
This commit is contained in:
Jürgen Buchmüller 2015-11-20 14:09:55 +01:00
parent 4d44d98648
commit 2019eb50aa

View file

@ -3,7 +3,7 @@ pkgname=lynx
_version=2.8.8 _version=2.8.8
_patch=2 _patch=2
version=$_version.$_patch version=$_version.$_patch
revision=9 revision=10
wrksrc="${pkgname}${_version//./-}" wrksrc="${pkgname}${_version//./-}"
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-widec --with-zlib --with-bzlib --with-ssl --enable-ipv6" configure_args="--enable-widec --with-zlib --with-bzlib --with-ssl --enable-ipv6"
@ -16,5 +16,9 @@ distfiles="http://invisible-mirror.net/archives/lynx/tarballs/${pkgname}${_versi
checksum=234c9dc77d4c4594ad6216d7df4d49eae3019a3880e602f39721b35b97fbc408 checksum=234c9dc77d4c4594ad6216d7df4d49eae3019a3880e602f39721b35b97fbc408
pre_configure() { pre_configure() {
sed -i '/LDFLAGS="-L$cf_add_libdir $LDFLAGS"/d' configure sed -i configure \
-e '/LDFLAGS="-L$cf_add_libdir $LDFLAGS"/d' \
-e 's;,$BUILD_CC;,$CC_FOR_BUILD;' \
-e 's;,$BUILD_CFLAGS;,$CFLAGS_FOR_BUILD;' \
-e 's;,$BUILD_LDFLAGS;,$LDFLAGS_FOR_BUILD;'
} }