summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-11 07:00:01 +0000
committerMike Frysinger <vapier@gentoo.org>2012-11-11 07:00:01 +0000
commit87a8b5fba6a66f778df4ff7aae8e9df49690d775 (patch)
treea18d782418f8a786209abd2d901fca9bb74f5b43 /eclass/flag-o-matic.eclass
parentUpdate init.d script to match latest version #442036 by Manuel Rüger. (diff)
downloadgentoo-2-87a8b5fba6a66f778df4ff7aae8e9df49690d775.tar.gz
gentoo-2-87a8b5fba6a66f778df4ff7aae8e9df49690d775.tar.bz2
gentoo-2-87a8b5fba6a66f778df4ff7aae8e9df49690d775.zip
raw-ldflags: throw away flags that do not start with -Wl, #441808
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 28f51e30f92e..fe6eaec6a73b 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.179 2012/10/30 20:51:44 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.180 2012/11/11 07:00:01 vapier Exp $
# @ECLASS: flag-o-matic.eclass
# @MAINTAINER:
@@ -599,8 +599,14 @@ raw-ldflags() {
[[ -z ${input} ]] && input=${LDFLAGS}
set --
for x in ${input} ; do
- x=${x#-Wl,}
- set -- "$@" ${x//,/ }
+ case ${x} in
+ -Wl*,)
+ x=${x#-Wl,}
+ set -- "$@" ${x//,/ }
+ ;;
+ *) # Assume it's a compiler driver flag, so throw it away #441808
+ ;;
+ esac
done
echo "$@"
}