diff options
author | Ned Ludd <solar@gentoo.org> | 2004-06-22 17:08:34 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2004-06-22 17:08:34 +0000 |
commit | 137cad4f099abb9c3fa10d8cd9835f2a98712fb3 (patch) | |
tree | ba1414ac90e9a4315ab72b32c557064b4ea87d32 /sys-devel/patch/patch-2.5.9.ebuild | |
parent | Force emake -j1 and fix xemacs IUSE flag, closing bug #54706 (Manifest recommit) (diff) | |
download | gentoo-2-137cad4f099abb9c3fa10d8cd9835f2a98712fb3.tar.gz gentoo-2-137cad4f099abb9c3fa10d8cd9835f2a98712fb3.tar.bz2 gentoo-2-137cad4f099abb9c3fa10d8cd9835f2a98712fb3.zip |
Fixed unary operator problem because LDFLAGS_PIE does not exist in most of the cases. Fixed overwrite of LDFLAGS=
Diffstat (limited to 'sys-devel/patch/patch-2.5.9.ebuild')
-rw-r--r-- | sys-devel/patch/patch-2.5.9.ebuild | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys-devel/patch/patch-2.5.9.ebuild b/sys-devel/patch/patch-2.5.9.ebuild index 6c0d70f427d5..729c6c129406 100644 --- a/sys-devel/patch/patch-2.5.9.ebuild +++ b/sys-devel/patch/patch-2.5.9.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/patch/patch-2.5.9.ebuild,v 1.16 2004/05/08 14:24:04 kugelfang Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/patch/patch-2.5.9.ebuild,v 1.17 2004/06/22 17:08:34 solar Exp $ inherit flag-o-matic @@ -30,15 +30,12 @@ src_compile() { ac_cv_sys_long_file_names=yes \ ./configure --host=${CHOST} --prefix=/usr --mandir=/usr/share/man # workaround for hardened on amd64, 2nd part - if [ ${LDFLAGS_PIE} = "1" ]; then + if [ "${LDFLAGS_PIE}" = "1" ]; then einfo "Patching Makefile..." sed -i -e 's/^LDFLAGS =/& -pie/' Makefile || die "Patching Makefile failed!" fi - if ! use static ; then - emake || die "emake failed" - else - emake LDFLAGS=-static || die "emake failed" - fi + use static && append-ldflags -static + emake LDFLAGS="${LDFLAGS}" || die "emake failed" } src_install() { |