Patches item #1254718, was opened at 2005-08-09 13:53
Message generated for change (Comment added) made by sanxiyn
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1254718&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils and setup.py
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Seo Sanghyeon (sanxiyn)
Assigned to: Nobody/Anonymous (nobody)
Summary: GCC detection for runtime_library_dirs when ccache is used

Initial Comment:
Recently I discovered ccache and am very happily using it.

However, some Python extensions (python-ldap, to be
precise) didn't link correctly, ignoring
runtime_library_dirs, only if I used ccache.
(CC='ccache gcc' python setup.py...)

Attached patch fixes this by treating any compiler with
string gcc or g++ in it as GCC, not only those start
with gcc or g++. This feels like hack over hack, but oh
well.

----------------------------------------------------------------------

>Comment By: Seo Sanghyeon (sanxiyn)
Date: 2007-05-25 12:52

Message:
Logged In: YES 
user_id=837148
Originator: YES

This is a part of Gentoo Python patchset.
http://gentoo.osuosl.org/distfiles/python-gentoo-patches-2.5.1.tar.bz2

----------------------------------------------------------------------

Comment By: Rick (rickharris)
Date: 2006-07-01 10:41

Message:
Logged In: YES 
user_id=1269204

Patch is good, bug still exists and not limited to just 
ccache users.

On many systems using gcc, 'CC' does not == "gcc".

For example, on this 
system /usr/lib/python2.4/config/Makefile reads
'CC=i686-pc-linux-gnu-gcc -pthread'

Therefore distutils will never link the RPATH/RUNPATH into 
the .so correctly.
If any of the libraries linked against are in directories 
that are not in the system's LDPATH, then the application 
will fail when it cannot find the linked library.


----------------------------------------------------------------------

Comment By: Seo Sanghyeon (sanxiyn)
Date: 2005-08-09 16:08

Message:
Logged In: YES 
user_id=837148

Hye-Shik Chang pointed out that Intel C Compiler(icc) needs
-Wl,-R as well, not -R. Perhaps this should check for icc too?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1254718&group_id=5470
_______________________________________________
Patches mailing list
Patches@python.org
http://mail.python.org/mailman/listinfo/patches

Reply via email to