summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGordon Malm <gengor@gentoo.org>2009-01-08 11:06:10 +0000
committerGordon Malm <gengor@gentoo.org>2009-01-08 11:06:10 +0000
commitf42869db2811aa9a0a809f1079c31d7ff58c5b92 (patch)
tree318b7902eb8d955501b8a987b50fc517d9e42791 /eclass
parentIf libcdio is built with USE minimal, it doesn't install cdtext.h include req... (diff)
downloadgentoo-2-f42869db2811aa9a0a809f1079c31d7ff58c5b92.tar.gz
gentoo-2-f42869db2811aa9a0a809f1079c31d7ff58c5b92.tar.bz2
gentoo-2-f42869db2811aa9a0a809f1079c31d7ff58c5b92.zip
Add quoting to comparison on gcc-specs- funcs - fixes false results with GCC 4.x
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-funcs.eclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 03cd89f34613..d9b75af8ab48 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.83 2009/01/08 09:56:00 gengor Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.84 2009/01/08 11:06:10 gengor Exp $
# @ECLASS: toolchain-funcs.eclass
# @MAINTAINER:
@@ -349,37 +349,37 @@ gcc-specs-directive() {
gcc-specs-relro() {
local directive
directive=$(gcc-specs-directive link_command)
- return $([[ ${directive/\{!norelro:} != ${directive} ]])
+ return $([[ "${directive/\{!norelro:}" != "${directive}" ]])
}
# Returns true if gcc sets now
gcc-specs-now() {
local directive
directive=$(gcc-specs-directive link_command)
- return $([[ ${directive/\{!nonow:} != ${directive} ]])
+ return $([[ "${directive/\{!nonow:}" != "${directive}" ]])
}
# Returns true if gcc builds PIEs
gcc-specs-pie() {
local directive
directive=$(gcc-specs-directive cc1)
- return $([[ ${directive/\{!nopie:} != ${directive} ]])
+ return $([[ "${directive/\{!nopie:}" != "${directive}" ]])
}
# Returns true if gcc builds with the stack protector
gcc-specs-ssp() {
local directive
directive=$(gcc-specs-directive cc1)
- return $([[ ${directive/\{!fno-stack-protector:} != ${directive} ]])
+ return $([[ "${directive/\{!fno-stack-protector:}" != "${directive}" ]])
}
# Returns true if gcc upgrades fstack-protector to fstack-protector-all
gcc-specs-ssp-to-all() {
local directive
directive=$(gcc-specs-directive cc1)
- return $([[ ${directive/\{!fno-stack-protector-all:} != ${directive} ]])
+ return $([[ "${directive/\{!fno-stack-protector-all:}" != "${directive}" ]])
}
# Returns true if gcc builds with fno-strict-overflow
gcc-specs-nostrict() {
local directive
directive=$(gcc-specs-directive cc1)
- return $([[ ${directive/\{!fstrict-overflow:} != ${directive} ]])
+ return $([[ "${directive/\{!fstrict-overflow:}" != "${directive}" ]])
}