From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SY79u-0007eS-Qi for garchives@archives.gentoo.org; Sat, 26 May 2012 02:55:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A24B8E05D5; Sat, 26 May 2012 02:55:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 73AF2E05D5 for ; Sat, 26 May 2012 02:55:04 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7BD81B4009 for ; Sat, 26 May 2012 02:55:03 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id 8E6EE2004B; Sat, 26 May 2012 02:55:02 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: flag-o-matic.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: flag-o-matic.eclass X-VCS-Directories: eclass X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: <20120526025502.8E6EE2004B@flycatcher.gentoo.org> Date: Sat, 26 May 2012 02:55:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: eea0f298-e7c2-40a5-b811-8d2c344e056c X-Archives-Hash: a1e702cc67248ea03576aa366785da2d vapier 12/05/26 02:55:02 Modified: flag-o-matic.eclass Log: warn when people add preprocessor/linker flags with `append-flags` Revision Changes Path 1.170 eclass/flag-o-matic.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-mati= c.eclass?rev=3D1.170&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-mati= c.eclass?rev=3D1.170&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-mati= c.eclass?r1=3D1.169&r2=3D1.170 Index: flag-o-matic.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v retrieving revision 1.169 retrieving revision 1.170 diff -u -r1.169 -r1.170 --- flag-o-matic.eclass 26 Feb 2012 12:09:44 -0000 1.169 +++ flag-o-matic.eclass 26 May 2012 02:55:02 -0000 1.170 @@ -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 20= 12/02/26 12:09:44 blueness Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.170 20= 12/05/26 02:55:02 vapier Exp $ =20 # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -179,6 +179,10 @@ # Add extra 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 "$@"