From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C4AD21381F3 for ; Sun, 11 Nov 2012 07:00:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9FDD21C005; Sun, 11 Nov 2012 07:00:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44FFC21C005 for ; Sun, 11 Nov 2012 07:00: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 404C333D7E7 for ; Sun, 11 Nov 2012 07:00:03 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id 3CE1220081; Sun, 11 Nov 2012 07:00:01 +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 Content-Transfer-Encoding: 8bit Message-Id: <20121111070001.3CE1220081@flycatcher.gentoo.org> Date: Sun, 11 Nov 2012 07:00:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 52686925-8033-453e-892d-517b89a4ac50 X-Archives-Hash: 08aefaaf97690457819316b4e8eb6cbe vapier 12/11/11 07:00:01 Modified: flag-o-matic.eclass Log: raw-ldflags: throw away flags that do not start with -Wl, #441808 Revision Changes Path 1.180 eclass/flag-o-matic.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.180&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.180&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.179&r2=1.180 Index: flag-o-matic.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v retrieving revision 1.179 retrieving revision 1.180 diff -u -r1.179 -r1.180 --- flag-o-matic.eclass 30 Oct 2012 20:51:44 -0000 1.179 +++ flag-o-matic.eclass 11 Nov 2012 07:00:01 -0000 1.180 @@ -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 @@ [[ -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 "$@" }