diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-05-26 02:55:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-05-26 02:55:02 +0000 |
commit | 2020950fa071f776489f48ff173e387820216cda (patch) | |
tree | 44832fca1d97f8b51980d969cc6b03a893fff53a /eclass/flag-o-matic.eclass | |
parent | Fix bug #406163, bug #409269, bug #417171, bug #417537 and bug #417541 in Cla... (diff) | |
download | historical-2020950fa071f776489f48ff173e387820216cda.tar.gz historical-2020950fa071f776489f48ff173e387820216cda.tar.bz2 historical-2020950fa071f776489f48ff173e387820216cda.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 "$@" |