diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-05-31 00:24:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-05-31 00:24:47 +0000 |
commit | e4e898a092126c9be97b11fabeda59cc5b719f8a (patch) | |
tree | 88a93e8035c5f1bcd03f834e835dc1581136f076 /eclass/flag-o-matic.eclass | |
parent | Version bump for beta channel release. (diff) | |
download | gentoo-2-e4e898a092126c9be97b11fabeda59cc5b719f8a.tar.gz gentoo-2-e4e898a092126c9be97b11fabeda59cc5b719f8a.tar.bz2 gentoo-2-e4e898a092126c9be97b11fabeda59cc5b719f8a.zip |
also warn on -Wl, flags passed to append-flags
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index d7ec758e0ad4..df6787c724ae 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.171 2012/05/30 07:59:51 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.172 2012/05/31 00:24:47 vapier Exp $ # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -206,7 +206,8 @@ append-flags() { [[ $# -eq 0 ]] && return 0 case " $* " in *' '-[DIU]*) eqawarn 'please use append-cppflags for preprocessor flags' ;; - *' '-L*) eqawarn 'please use append-ldflags for linker flags' ;; + *' '-L*|\ + *' '-Wl,*') eqawarn 'please use append-ldflags for linker flags' ;; esac append-cflags "$@" append-cxxflags "$@" |