From: Mike Frysinger <vapier@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: "Gregory M. Turner" <gmt@malth.us>
Subject: Re: [gentoo-dev] Re: [PATCH/RFC] eclass/flag-o-matic.eclass: prepend-ldpath
Date: Tue, 9 Oct 2012 17:26:48 -0400 [thread overview]
Message-ID: <201210091726.49675.vapier@gentoo.org> (raw)
In-Reply-To: <506FE22D.6000300@malth.us>
[-- Attachment #1: Type: Text/Plain, Size: 1362 bytes --]
On Saturday 06 October 2012 03:47:57 Gregory M. Turner wrote:
> My god, I am a horrible self-editor. Sorry. Please ignore the magnum
> opus above and allow me to try again.
>
> In dev-lang/python*, we use
>
> append-ldflags '-L.'
>
> to ensure linking is performed against the built libpython.so in-tree,
> rather than than in the one in $(libdir). But, this doesn't work if
> LDFLAGS contains "-L$(libdir)".
well, some notes here ...
for users: putting -L<some-system-path> is wrong. it changes the meaning of
"system paths" when it comes to searching for linking by elevating it to "user
specified path". imo, you should be fixing the source rather than the symptom.
for packagers: using -L$(libdir) is almost always wrong and pointless. the
toolchain itself knows the proper system path to search for libraries to link
against, and when you cross-compile, the --libdir you specify to configure is
not going to be valid when dereferenced on the build system.
> We could try to fix this like:
>
> export LDFLAGS="-L. ${LDFLAGS}"
>
> or so. That would cover 99.9% of the cases out there. But very rarely,
> indiscriminately placing our '-L.' before every other clause in LDFLAGS
> might cause an unanticipated side-effect.
i would go with this if you want to support these people doing it wrong
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-10-09 21:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-06 2:50 [gentoo-dev] [PATCH/RFC] eclass/flag-o-matic.eclass: prepend-ldpath Gregory M. Turner
2012-10-06 7:47 ` [gentoo-dev] " Gregory M. Turner
2012-10-06 8:31 ` Fabian Groffen
2012-10-10 22:47 ` Gregory M. Turner
2012-10-11 3:28 ` Mike Frysinger
2012-10-06 15:13 ` Duncan
2012-10-09 21:26 ` Mike Frysinger [this message]
2012-10-11 3:37 ` Gregory M. Turner
2012-10-11 3:50 ` Diego Elio Pettenò
2012-10-11 4:14 ` Mike Frysinger
2012-10-11 9:35 ` Gregory M. Turner
2012-10-11 15:50 ` Mike Frysinger
2012-10-11 20:39 ` Gregory M. Turner
2012-10-11 21:40 ` Marien Zwart
2012-10-12 11:03 ` Gregory M. Turner
2012-10-14 8:49 ` Gregory M. Turner
2012-10-15 4:29 ` Mike Frysinger
2012-10-15 8:35 ` Gregory M. Turner
2012-10-15 17:47 ` Mike Frysinger
2012-10-17 10:11 ` Marien Zwart
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=201210091726.49675.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=gmt@malth.us \
/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