From 2019eb50aa80d32d710d65066c4d5413798c2461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 20 Nov 2015 14:09:55 +0100 Subject: [PATCH] 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). --- srcpkgs/lynx/template | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/srcpkgs/lynx/template b/srcpkgs/lynx/template index 4d2c24a6940..9d54d60e51a 100644 --- a/srcpkgs/lynx/template +++ b/srcpkgs/lynx/template @@ -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;' }