summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gabert <pappy@gentoo.org>2003-10-09 19:51:43 +0000
committerAlexander Gabert <pappy@gentoo.org>2003-10-09 19:51:43 +0000
commitff300b9c62b06945ef57f82de00a836a40f2b268 (patch)
tree125e712d7461a321ec8e9e86bc729a4fb6c63efd /sys-fs/devfsd/devfsd-1.3.25-r3.ebuild
parentadded new hppa dependent hardened-gcc flags (diff)
downloadhistorical-ff300b9c62b06945ef57f82de00a836a40f2b268.tar.gz
historical-ff300b9c62b06945ef57f82de00a836a40f2b268.tar.bz2
historical-ff300b9c62b06945ef57f82de00a836a40f2b268.zip
added new hppa dependent hardened-gcc flags
Diffstat (limited to 'sys-fs/devfsd/devfsd-1.3.25-r3.ebuild')
-rw-r--r--sys-fs/devfsd/devfsd-1.3.25-r3.ebuild21
1 files changed, 17 insertions, 4 deletions
diff --git a/sys-fs/devfsd/devfsd-1.3.25-r3.ebuild b/sys-fs/devfsd/devfsd-1.3.25-r3.ebuild
index 98eef57ae028..19fb03b5d892 100644
--- a/sys-fs/devfsd/devfsd-1.3.25-r3.ebuild
+++ b/sys-fs/devfsd/devfsd-1.3.25-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/sys-fs/devfsd/devfsd-1.3.25-r3.ebuild,v 1.1 2003/09/15 17:46:24 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/devfsd/devfsd-1.3.25-r3.ebuild,v 1.2 2003/10/09 19:51:36 pappy Exp $
IUSE=""
@@ -20,9 +20,22 @@ DEPEND="virtual/glibc"
src_unpack() {
unpack ${A}
- # http://www.gentoo.org/proj/en/hardened/etdyn-ssp.xml
- has_version 'sys-devel/hardened-gcc' && append-flags '-yet_exec'
-
+ # 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
+ append-flags "-yet_exec -fstack-protector"
+ fi
+
+ if [ "${ARCH}" == "hppa" ] && has_version 'sys-devel/hardened-gcc'
+ then
+ append-flags "-yet_exec"
+ fi
+
+ if [ "${ARCH}" == "hppa64" ] && has_version 'sys-devel/hardened-gcc'
+ then
+ append-flags "-yet_exec"
+ fi
+
cd ${S}
cp GNUmakefile GNUmakefile.orig
sed -e "s:-O2:${CFLAGS}:g" \