[Python-bugs-list] [ python-Bugs-799104 ] CPPFLAGS should not be
aded to ldshard command
SourceForge.net
noreply at sourceforge.net
Wed Sep 3 02:14:13 EDT 2003
Bugs item #799104, was opened at 2003-09-02 14:31
Message generated for change (Comment added) made by sjoerd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=799104&group_id=5470
Category: Distutils
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Sjoerd Mullender (sjoerd)
Assigned to: Nobody/Anonymous (nobody)
Summary: CPPFLAGS should not be aded to ldshard command
Initial Comment:
CPPFLAGS contains flags for the C preprocessor. It has
no business being added to the ldshared command (this
is in sysconfig.py). In fact, it may be harmful since
the ldshared command may well be ld with some flags
which typically does not understand cpp flags.
Irix where the ldshared command is "ld -shared -all"
is a good example of where it is plain wrong to add
CPPFLAGS.
----------------------------------------------------------------------
>Comment By: Sjoerd Mullender (sjoerd)
Date: 2003-09-03 10:14
Message:
Logged In: YES
user_id=43607
I maintain that CPPFLAGS has no business being part of
LDSHARED. LDSHARED is used at link time only, and the C
preprocessor is not in any way involved in that step.
If you can come up with a better way of creating shared
libraries on Irix, be my guest. The current way has served
us well for many years. Looking at configure.in, it's
mostly gcc based systems that use gcc to do the linking of
shared libraries.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-09-03 07:19
Message:
Logged In: YES
user_id=21627
OTOH, it also seems wrong that, on Irix, ldshared is "ld
-shared -all". ld should never be used directly.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=799104&group_id=5470
More information about the Python-bugs-list
mailing list