[Patches] [ python-Patches-609700 ] always build with same $(CC) on Linux

noreply@sourceforge.net noreply@sourceforge.net
Sun, 15 Sep 2002 15:34:14 -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: Open
Resolution: None
Priority: 5
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.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=609700&group_id=5470