]> granicus.if.org Git - python/commitdiff
Just passing -undefined dynamic_lookup isn't enough: we also need to set
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 28 Dec 2004 21:30:35 +0000 (21:30 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 28 Dec 2004 21:30:35 +0000 (21:30 +0000)
the MACOSX_DEPLOYMENT_TARGET environment variable to 10.3 when calling the
loader. And we do this with "env" because distutils apparently doesn't
understand environment variable assignments before command names.

Mac/OSX/fixapplepython23.py

index 454734783a7535218441ca6c12dd8e886d60067c..c2b1f4ebe92464cc863bd1a1403a0bf3c16b41d5 100644 (file)
@@ -18,7 +18,7 @@ import gestalt
 MAKEFILE='/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/config/Makefile'
 OLD_LDSHARED='LDSHARED=\t$(CC) $(LDFLAGS) -bundle -framework $(PYTHONFRAMEWORK)\n'
 OLD_BLDSHARED='B' + OLD_LDSHARED
-NEW_LDSHARED='LDSHARED=\t$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup\n'
+NEW_LDSHARED='LDSHARED=\tenv MACOSX_DEPLOYMENT_TARGET=10.3 $(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup\n'
 NEW_BLDSHARED='B' + NEW_LDSHARED
 
 def findline(lines, start):