This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flub
Recipients flub, tarek
Date 2009-05-04.15:21:36
SpamBayes Score 1.110223e-16
Marked as misclassified No
Message-id <1241450499.02.0.438615230957.issue5900@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not convinced that would help much.  The GNULD variable in the
makefile is for when the default linker is used.  If you change that by
using LDSHARED then you're probably not going to be using --rpath but
LDFLAGS to configure it the way you want.

If anything maybe using configure/Makefile to detect if GNU ld is used
is wrong just for the case they use LDSHARED (I didn't think of this
before), since then they can use LDSHARED and --rpath and get misterious
failures.  But it seems a lot more complicated to do, LDSHARED can be
set to something like "cc -shared" (the default) in which case we can't
use -V and assume it's a non-GNU ld if we don't get "GNU" back.  So we'd
have to try and detect if LDSHARED is set to a compiler or a linker,
then try to find which linker gets invoked etc.  A lot more complicated
and way more possibilities then I can test.

I'd argue that when someone uses LDSHARED they should be using LDFLAGS
intead of --rpath, they obviously know what they are doing.  --rpath is
there if you want to use the environment Python was compiled in to build
an extension module with a RPATH/RUNPATH in.
History
Date User Action Args
2009-05-04 15:21:39flubsetrecipients: + flub, tarek
2009-05-04 15:21:39flubsetmessageid: <1241450499.02.0.438615230957.issue5900@psf.upfronthosting.co.za>
2009-05-04 15:21:37flublinkissue5900 messages
2009-05-04 15:21:36flubcreate