Message60636
I'm trying to build a 32-bit python on an x86_64 Linux box running Fedora Core 3.
Here's my configure command line:
CFLAGS=-m32 LDFLAGS=-m32 ../../../python/configure --prefix=/opt/python --enable-shared --enable-ipv6 --enable-profiling --enable-unicode=ucs4
When I try to do a make afterwards, the build immediately fails:
gcc -pthread -c -pg -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I../../../python/Include -fPIC -DPy_BUILD_CORE -o Modules/python.o ../../../python/Modules/python.c
In file included from ../../../python/Include/Python.h:55,
from ../../../python/Modules/python.c:3:
../../../python/Include/pyport.h:612:2: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
make: *** [Modules/python.o] Error 1
Notice the lack of "-m32" on the gcc command line. Sure enough, look in the Makefile and LDFLAGS is set correctly, with -m32, but CFLAGS makes no mention of it, nor does BASECFLAGS.
If I modify BASECFLAGS by hand, python itself builds OK, but then the shared libraries fail to link because LDSHARED is not having LDFLAGS passed in. |
|
Date |
User |
Action |
Args |
2008-01-20 09:57:25 | admin | link | issue1104249 messages |
2008-01-20 09:57:25 | admin | create | |
|