commit:     bd4ea26296468aa04e671ed3073a7c3b03df4ebd
Author:     Andrea Cerisara <andreacerisara <AT> gmail <DOT> com>
AuthorDate: Tue Sep  1 06:51:48 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 16 01:55:46 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd4ea262

app-benchmarks/siege: remove /usr/lib from LDFLAGS

Signed-off-by: Andrea Cerisara <andreacerisara <AT> gmail.com>
Bug: https://bugs.gentoo.org/732886
Package-Manager: Portage-3.0.4, Repoman-2.3.23
Closes: https://github.com/gentoo/gentoo/pull/17356
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-benchmarks/siege/siege-4.0.5.ebuild | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/app-benchmarks/siege/siege-4.0.5.ebuild 
b/app-benchmarks/siege/siege-4.0.5.ebuild
index 57c3d85b8fe..adc92eaedd1 100644
--- a/app-benchmarks/siege/siege-4.0.5.ebuild
+++ b/app-benchmarks/siege/siege-4.0.5.ebuild
@@ -15,15 +15,21 @@ SLOT="0"
 IUSE="libressl ssl"
 
 RDEPEND="ssl? (
-               !libressl? ( dev-libs/openssl:0= )
-               libressl? ( dev-libs/libressl:0= )
-       )"
+       !libressl? ( dev-libs/openssl:0= )
+       libressl? ( dev-libs/libressl:0= )
+)"
 DEPEND="${RDEPEND}"
 
 src_prepare() {
        default
        # bundled macros break recent libtool
-       sed -i -e '/AC_PROG_SHELL/d' configure.ac || die
+       # remove /usr/lib from LDFLAGS, bug #732886
+       sed -i \
+       -e '/AC_PROG_SHELL/d' \
+       -e 's/SSL_LDFLAGS="-L.*lib"/SSL_LDFLAGS=""/g' \
+       -e 's/Z_LDFLAGS="-L.*lib"/Z_LDFLAGS=""/g' \
+       configure.ac || die
+
        rm *.m4 || die "failed to remove bundled macros"
        eautoreconf
 }

Reply via email to