diff options
author | 2012-05-26 02:55:02 +0000 | |
---|---|---|
committer | 2012-05-26 02:55:02 +0000 | |
commit | 278e5d55f9e1382708997f5533f307a48f8c75e6 (patch) | |
tree | 3de4eae54bb3b8ae9bda0323233883a029b6882e /eclass/flag-o-matic.eclass | |
parent | Fix bug #406163, bug #409269, bug #417171, bug #417537 and bug #417541 in Cla... (diff) | |
download | gentoo-2-278e5d55f9e1382708997f5533f307a48f8c75e6.tar.gz gentoo-2-278e5d55f9e1382708997f5533f307a48f8c75e6.tar.bz2 gentoo-2-278e5d55f9e1382708997f5533f307a48f8c75e6.zip |
warn when people add preprocessor/linker flags with `append-flags`
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 21dbc3866260..ad4f1409b180 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 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.169 2012/02/26 12:09:44 blueness Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.170 2012/05/26 02:55:02 vapier Exp $ # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -179,6 +179,10 @@ append-lfs-flags() { # Add extra <flags> to your current {C,CXX,F,FC}FLAGS. 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' ;; + esac append-cflags "$@" append-cxxflags "$@" append-fflags "$@" |