0

Python is embedded in an app that comes in 32 bit and 64 bit flavours. I need both to release my code and I need to build from source for debugging. I tried the only configure variable that seemed 32-bit specific (--with-universal-archs=32-bit) but that didn't seem to add any flags to gcc. eg:

 gcc -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
effbiae
  • 1,087
  • 1
  • 7
  • 22

1 Answers1

0

from How do I build OpenSSL as 32-bit (i386) on Mac OS X?

$ export CFLAGS="-arch i386"
$ export LDFLAGS="-arch i386"
$ ./configure
$ make
effbiae
  • 1,087
  • 1
  • 7
  • 22