[Patches] [ python-Patches-1254718 ] GCC detection for runtime_library_dirs when ccache is used

SourceForge.net noreply at sourceforge.net
Sat Jul 1 03:41:43 CEST 2006


Patches item #1254718, was opened at 2005-08-09 14:23
Message generated for change (Comment added) made by rickharris
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
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: Rick (rickharris)
Date: 2006-07-01 11:11

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:38

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


More information about the Patches mailing list