summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-11 20:00:57 +0000
committerMike Frysinger <vapier@gentoo.org>2012-11-11 20:00:57 +0000
commit5aae16f2b7f629dadc49adce4d5aa20d34c33a6e (patch)
tree4b9e8b1fa72ad5ef4c72e872055f11a4001c87af /eclass
parentInstall two different Apache configuration files for 2.2 and 2.4, as access c... (diff)
downloadgentoo-2-5aae16f2b7f629dadc49adce4d5aa20d34c33a6e.tar.gz
gentoo-2-5aae16f2b7f629dadc49adce4d5aa20d34c33a6e.tar.bz2
gentoo-2-5aae16f2b7f629dadc49adce4d5aa20d34c33a6e.zip
raw-ldflags: fix typo in previous commit #441808#10
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass4
-rwxr-xr-xeclass/tests/flag-o-matic.sh6
2 files changed, 8 insertions, 2 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index fe6eaec6a73b..1855e5dcf84e 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 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.180 2012/11/11 07:00:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.181 2012/11/11 20:00:57 vapier Exp $
# @ECLASS: flag-o-matic.eclass
# @MAINTAINER:
@@ -600,7 +600,7 @@ raw-ldflags() {
set --
for x in ${input} ; do
case ${x} in
- -Wl*,)
+ -Wl,*)
x=${x#-Wl,}
set -- "$@" ${x//,/ }
;;
diff --git a/eclass/tests/flag-o-matic.sh b/eclass/tests/flag-o-matic.sh
index fcac1b3739db..c62f4e225898 100755
--- a/eclass/tests/flag-o-matic.sh
+++ b/eclass/tests/flag-o-matic.sh
@@ -110,4 +110,10 @@ append-cflags '-DFOO="a b c"'
[[ ${CFLAGS} == '-DFOO="a b c"' ]]
ftend
+tbegin "raw-ldflags"
+LDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,-z,now -flto'
+LDFLAGS=$(raw-ldflags)
+[[ ${LDFLAGS} == '-O1 --as-needed -z now' ]]
+ftend
+
texit