[Pythonmac-SIG] Running "freeze" on non-framework Python/universal binary issues

Kevin Walzer kw at kevin-walzer.com
Thu Jul 20 19:34:32 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Looks like hacking the makefile generated by freeze.py solves the
problem. Copying the args from BASCFLAGS to CFLAGS results in a
universal binary.

CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
- -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
#   $(OPT)

Kevin-Walzers-Computer:~/python24-fat/Tools/freeze kevin$ ./hello
Hello world...
Kevin-Walzers-Computer:~/python24-fat/Tools/freeze kevin$ file hello
hello: Mach-O fat file with 2 architectures
hello (for architecture ppc):   Mach-O executable ppc
hello (for architecture i386):  Mach-O executable i386
Kevin-Walzers-Computer:~/python24-fat/Tools/freeze kevin$


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

- --
Kevin Walzer
Poetic Code
http://www.kevin-walzer.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEv76orTC5hIgjqTMRAuq4AKCVpF1+BR4UCoQfKYTeXqprDcxz+QCeLm1Q
Nxz6OS1vz9WG8evxqg7MPIo=
=Dr7+
-----END PGP SIGNATURE-----


More information about the Pythonmac-SIG mailing list