Just passing -undefined dynamic_lookup isn't enough: we also need to set
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.
This commit is contained in:
parent
3b585b30c0
commit
935ca1018e
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue