Skip to content

Commit

Permalink
app-benchmarks/siege: remove /usr/lib from LDFLAGS
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cerisara <[email protected]>
Bug: https://bugs.gentoo.org/732886
Package-Manager: Portage-3.0.4, Repoman-2.3.23
Closes: gentoo#17356
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
acerisara authored and thesamesam committed Sep 16, 2020
1 parent eb3b0de commit bd4ea26
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app-benchmarks/siege/siege-4.0.5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bd4ea26

Please sign in to comment.