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:
parent
4d44d98648
commit
2019eb50aa
1 changed files with 6 additions and 2 deletions
|
@ -3,7 +3,7 @@ pkgname=lynx
|
|||
_version=2.8.8
|
||||
_patch=2
|
||||
version=$_version.$_patch
|
||||
revision=9
|
||||
revision=10
|
||||
wrksrc="${pkgname}${_version//./-}"
|
||||
build_style=gnu-configure
|
||||
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
|
||||
|
||||
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;'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue