[Patches] [ python-Patches-609700 ] always build with same $(CC) on Linux
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 07 Oct 2002 04:26:58 -0700
Patches item #609700, was opened at 2002-09-15 22:34
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=609700&group_id=5470
Category: Build
Group: Python 2.3
Status: Closed
Resolution: Accepted
Priority: 7
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: always build with same $(CC) on Linux
Initial Comment:
When configuring python with --with-gcc and/or --with-
cxx, the shared modules are not built with the
configured compilers and not linked with the configured
compilers.
The patch attached uses the configured compiler when
building the shared modules.
Python fails to build, when configured --with-gcc=gcc-3.2
on ia64-linux. Distilled code (thanks to Martin v. Loewis):
#include <stdio.h>
int main(int argc, char*argv[])
{
printf("%d\n", 16/argc);
}
Translate with:
gcc-3.2 -c div.c
gcc-2.95 -o div div.o
call: ./div onearg
prints 7, not 8.
Should be fixed in 2.1 and 2.2 as well and maybe for
other architectures.
----------------------------------------------------------------------
>Comment By: Michael Hudson (mwh)
Date: 2002-10-07 11:26
Message:
Logged In: YES
user_id=6656
I'm a little confused. How did your patch differ from
doko's? Should this go into 2.2.2? Has it already? (Don't
think so, but...)
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2002-09-16 17:52
Message:
Logged In: YES
user_id=21627
Your patch was incorrect: it breaks if CC is not set in the
environment. I committed a modified patch as configure.in
1.345 and configure 1.334.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=609700&group_id=5470