summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGordon Malm <gengor@gentoo.org>2009-01-08 11:29:06 +0000
committerGordon Malm <gengor@gentoo.org>2009-01-08 11:29:06 +0000
commit630ef08cf1eb31dff324bb34186286f506a0abf9 (patch)
tree980e355a2b9bffe40c2fa8b66717d4e4cdd9de9f /eclass
parentAdd quoting to comparison on gcc-specs- funcs - fixes false results with GCC 4.x (diff)
downloadhistorical-630ef08cf1eb31dff324bb34186286f506a0abf9.tar.gz
historical-630ef08cf1eb31dff324bb34186286f506a0abf9.tar.bz2
historical-630ef08cf1eb31dff324bb34186286f506a0abf9.zip
Only append flags in _filter-hardened if they are valid
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 4ce8f8fc781f..9e5e514b34ff 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.130 2009/01/08 08:12:55 gengor Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.131 2009/01/08 11:29:06 gengor Exp $
# @ECLASS: flag-o-matic.eclass
# @MAINTAINER:
@@ -73,13 +73,13 @@ _filter-hardened() {
is-flagq -nopie || append-flags -nopie;;
-fstack-protector)
gcc-specs-ssp || continue
- is-flagq -fno-stack-protector || append-flags -fno-stack-protector;;
+ is-flagq -fno-stack-protector || append-flags $(test-flags -fno-stack-protector);;
-fstack-protector-all)
gcc-specs-ssp-to-all || continue
- is-flagq -fno-stack-protector-all || append-flags -fno-stack-protector-all;;
+ is-flagq -fno-stack-protector-all || append-flags $(test-flags -fno-stack-protector-all);;
-fno-strict-overflow)
gcc-specs-nostrict || continue
- is-flagq -fstrict-overflow || append-flags -fstrict-overflow;;
+ is-flagq -fstrict-overflow || append-flags $(test-flags -fstrict-overflow);;
esac
done
}