summaryrefslogtreecommitdiff
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
commit7fd51f5f31916011d695303a90fc49507408f4be (patch)
tree7d02ca44955da2b9fd1eb9a42732ebaabd546af1 /eclass/flag-o-matic.eclass
parentAdd quoting to comparison on gcc-specs- funcs - fixes false results with GCC 4.x (diff)
downloadgentoo-2-7fd51f5f31916011d695303a90fc49507408f4be.tar.gz
gentoo-2-7fd51f5f31916011d695303a90fc49507408f4be.tar.bz2
gentoo-2-7fd51f5f31916011d695303a90fc49507408f4be.zip
Only append flags in _filter-hardened if they are valid
Diffstat (limited to 'eclass/flag-o-matic.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
}