[Python-bugs-list] [ python-Bugs-445902 ] runtime_library_dirs and gcc don't mix
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 10 Dec 2001 21:06:17 -0800
Bugs item #445902, was opened at 2001-07-30 03:15
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=445902&group_id=5470
Category: Distutils
Group: Platform-specific
>Status: Closed
>Resolution: Fixed
Priority: 7
Submitted By: Gary Capell (gcapell)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: runtime_library_dirs and gcc don't mix
Initial Comment:
providing runtime_library_dirs =["/foo"],
setup.py build does:
gcc -shared -R/foo ...
whereas it requires
gcc -shared -Wl,-R/foo
to get the option through to the linker.
My configuration:
python2.1.1, gcc 2.9.6, binutils 2.10.91.0.2,
redhat 7.1, intel
Please let me know if I'm just doing something stupid.
Thanks heaps for the distutils stuff, it makes playing
with extensions way easier.
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-12-10 21:06
Message:
Logged In: YES
user_id=3066
Fixed in Lib/distutils/unixccompiler.py revision 1.38.
(Bugfix candidate.)
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2001-12-07 02:21
Message:
Logged In: YES
user_id=21627
It is hackish, but it looks acceptable to me. When I
applying this patch, I recommend to add a comment indicating
what problem this fragment solves.
----------------------------------------------------------------------
Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-12-06 13:57
Message:
Logged In: YES
user_id=3066
I've attached a proposed patch, but it's way too hackish,
and doesn't generalize at all. But it probably solves the
most common case.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2001-08-11 00:53
Message:
Logged In: YES
user_id=21627
It somewhat depends on the platform; on Solaris, gcc will
accept -R. On Linux, it doesn't, so this is really
distutils fault, not yours.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=445902&group_id=5470