commit:     9cc464c43d3ebd1c493244b3e5816c65eb0a2aa5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 16 02:00:34 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 16 02:00:34 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cc464c4

app-benchmarks/siege: forward-port LDFLAGS changes

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

 app-benchmarks/siege/siege-4.0.7.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/app-benchmarks/siege/siege-4.0.7.ebuild 
b/app-benchmarks/siege/siege-4.0.7.ebuild
index 96acf64824f..7309c86336a 100644
--- a/app-benchmarks/siege/siege-4.0.7.ebuild
+++ b/app-benchmarks/siege/siege-4.0.7.ebuild
@@ -23,7 +23,12 @@ 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
 }
@@ -36,7 +41,7 @@ src_configure() {
 }
 
 src_install() {
-       emake DESTDIR="${D}" install
+       emake DESTDIR="${ED}" install
 
        dodoc AUTHORS ChangeLog INSTALL README* doc/siegerc doc/urls.txt
 

Reply via email to