From: "Diego Petteno (flameeyes)" <flameeyes@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: flag-o-matic.eclass
Date: Sat, 07 Jun 2008 16:42:32 +0000 [thread overview]
Message-ID: <E1K51Uu-0006YS-Qd@stork.gentoo.org> (raw)
flameeyes 08/06/07 16:42:32
Modified: flag-o-matic.eclass
Log:
Warn when using append-ldflags to pass libraries to link to.
Libraries shouldn't be passed as LDFLAGS, the flags should be passed
before the object files to link, while libraries should be passed
after. Passing libraries through LDFLAGS is one of the causes of
--as-needed failures.
Revision Changes Path
1.123 eclass/flag-o-matic.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.123&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.123&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.122&r2=1.123
Index: flag-o-matic.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -r1.122 -r1.123
--- flag-o-matic.eclass 18 Feb 2008 18:20:47 -0000 1.122
+++ flag-o-matic.eclass 7 Jun 2008 16:42:32 -0000 1.123
@@ -1,6 +1,6 @@
# Copyright 1999-2008 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.122 2008/02/18 18:20:47 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.123 2008/06/07 16:42:32 flameeyes Exp $
# @ECLASS: flag-o-matic.eclass
# @MAINTAINER:
@@ -579,6 +579,12 @@
# Add extra <flags> to the current LDFLAGS.
append-ldflags() {
[[ -z $* ]] && return 0
+ local flag
+ for flag in "$@"; do
+ [[ ${flag} == -l* ]] && \
+ ewarn "Appending a library link instruction (${flag}); libraries to link to should not be passed through LDFLAGS"
+ done
+
export LDFLAGS="${LDFLAGS} $*"
return 0
}
--
gentoo-commits@lists.gentoo.org mailing list
next reply other threads:[~2008-06-07 16:42 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-07 16:42 Diego Petteno (flameeyes) [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-24 7:05 [gentoo-commits] gentoo-x86 commit in eclass: flag-o-matic.eclass Mike Frysinger (vapier)
2015-05-06 7:04 Mike Frysinger (vapier)
2014-12-31 8:26 Mike Frysinger (vapier)
2014-11-01 3:45 Mike Frysinger (vapier)
2014-08-11 0:36 Joshua Kinard (kumba)
2014-02-02 22:26 Thomas Sachau (tommy)
2013-10-12 19:50 Mike Frysinger (vapier)
2013-09-30 6:39 Mike Frysinger (vapier)
2013-09-05 5:28 Mike Frysinger (vapier)
2013-01-12 14:32 Justin Lecher (jlec)
2012-12-03 21:20 Mike Frysinger (vapier)
2012-11-29 23:27 Mike Frysinger (vapier)
2012-11-18 8:29 Mike Frysinger (vapier)
2012-11-18 8:27 Mike Frysinger (vapier)
2012-11-11 20:00 Mike Frysinger (vapier)
2012-11-11 7:00 Mike Frysinger (vapier)
2012-10-30 20:51 Mike Frysinger (vapier)
2012-10-30 20:20 Mike Frysinger (vapier)
2012-06-23 22:21 Mike Frysinger (vapier)
2012-05-31 0:29 Mike Frysinger (vapier)
2012-05-31 0:24 Mike Frysinger (vapier)
2012-05-26 2:55 Mike Frysinger (vapier)
2012-02-26 12:09 Anthony G. Basile (blueness)
2012-01-16 20:03 Mike Frysinger (vapier)
2012-01-14 9:10 Mike Frysinger (vapier)
2012-01-14 8:22 Mike Frysinger (vapier)
2012-01-14 8:05 Mike Frysinger (vapier)
2012-01-13 22:40 Mike Frysinger (vapier)
2011-12-15 5:23 Mike Frysinger (vapier)
2011-12-07 6:42 Mike Frysinger (vapier)
2011-11-14 20:29 Mike Frysinger (vapier)
2011-10-08 18:37 Mike Frysinger (vapier)
2011-08-17 18:20 Mike Frysinger (vapier)
2011-08-17 17:59 Mike Frysinger (vapier)
2011-08-17 17:54 Mike Frysinger (vapier)
2011-07-12 4:08 Mike Frysinger (vapier)
2011-07-12 3:58 Mike Frysinger (vapier)
2011-02-25 10:51 Ryan Hill (dirtyepic)
2011-02-01 5:41 Ryan Hill (dirtyepic)
2010-05-08 3:47 Ryan Hill (dirtyepic)
2010-04-02 2:50 Jonathan Callen (abcd)
2010-02-17 18:20 Samuli Suominen (ssuominen)
2009-10-04 10:00 Samuli Suominen (ssuominen)
2009-08-15 18:04 Zac Medico (zmedico)
2009-07-29 8:32 Samuli Suominen (ssuominen)
2009-07-29 8:31 Samuli Suominen (ssuominen)
2009-07-20 4:28 Mike Frysinger (vapier)
2009-06-09 22:15 Ryan Hill (dirtyepic)
2009-05-26 7:18 Mike Frysinger (vapier)
2009-05-24 0:33 Michael Sterrett (mr_bones_)
2009-05-23 23:12 Mike Frysinger (vapier)
2009-04-05 8:22 Fabian Groffen (grobian)
2009-04-04 17:57 Fabian Groffen (grobian)
2009-01-21 0:42 Gordon Malm (gengor)
2009-01-08 11:29 Gordon Malm (gengor)
2009-01-08 8:12 Gordon Malm (gengor)
2009-01-04 17:22 Mike Frysinger (vapier)
2008-12-21 21:40 Ned Ludd (solar)
2008-11-03 5:52 Mike Frysinger (vapier)
2008-09-14 19:43 Ryan Hill (dirtyepic)
2008-07-03 5:30 Donnie Berkholz (dberkholz)
2008-02-18 18:20 Sven Wegener (swegener)
2008-02-16 22:43 Mike Frysinger (vapier)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1K51Uu-0006YS-Qd@stork.gentoo.org \
--to=flameeyes@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox