diff options
author | Alexander Gabert <pappy@gentoo.org> | 2003-10-09 19:33:34 +0000 |
---|---|---|
committer | Alexander Gabert <pappy@gentoo.org> | 2003-10-09 19:33:34 +0000 |
commit | 04e454688a29cdff99d80c456f0b22bc8c999bd0 (patch) | |
tree | 612743b822476ad6846fe357571d56d515a6dcf5 /media-libs/svgalib/svgalib-1.9.17-r3.ebuild | |
parent | added new hardened-gcc flags for hppa (diff) | |
download | historical-04e454688a29cdff99d80c456f0b22bc8c999bd0.tar.gz historical-04e454688a29cdff99d80c456f0b22bc8c999bd0.tar.bz2 historical-04e454688a29cdff99d80c456f0b22bc8c999bd0.zip |
added new hardened-gcc flags for hppa
Diffstat (limited to 'media-libs/svgalib/svgalib-1.9.17-r3.ebuild')
-rw-r--r-- | media-libs/svgalib/svgalib-1.9.17-r3.ebuild | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/media-libs/svgalib/svgalib-1.9.17-r3.ebuild b/media-libs/svgalib/svgalib-1.9.17-r3.ebuild index 8301e989bf9d..c0ceffa7918c 100644 --- a/media-libs/svgalib/svgalib-1.9.17-r3.ebuild +++ b/media-libs/svgalib/svgalib-1.9.17-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.9.17-r3.ebuild,v 1.5 2003/09/06 23:59:49 msterret Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.9.17-r3.ebuild,v 1.6 2003/10/09 19:33:28 pappy Exp $ inherit eutils @@ -32,12 +32,21 @@ src_unpack() { } src_compile() { - - # http://www.gentoo.org/proj/en/hardened/etdyn-ssp.xml - if has_version 'sys-devel/hardened-gcc' && [ "${CC}"="gcc" ] - then + # http://www.gentoo.org/proj/en/hardened/etdyn-ssp.xml or #gentoo-hardened/irc.freenode + if [ "${ARCH}" != "hppa" ] && [ "${ARCH}" != "hppa64" ] && has_version "sys-devel/hardened-gcc" + then + CC="${CC} -yet_exec -fstack-protector" + fi + + if [ "${ARCH}" == "hppa" ] && has_version 'sys-devel/hardened-gcc' + then + CC="${CC} -yet_exec" + fi + + if [ "${ARCH}" == "hppa64" ] && has_version 'sys-devel/hardened-gcc' + then CC="${CC} -yet_exec" - fi + fi make OPTIMIZE="${CFLAGS}" static shared textutils lrmi utils || \ die "Failed to build libraries and utils!" |