Ticket #40188: patch-configure-dynamiclib.diff
File patch-configure-dynamiclib.diff, 991 bytes (added by ghosthound, 11 years ago) |
---|
-
configure
old new 8222 8222 # Use -undefined dynamic_lookup whenever possible (10.3 and later). 8223 8223 # This allows an extension to be used in any Python 8224 8224 8225 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 8225 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.7 8226 then 8227 if test "${enable_universalsdk}"; then 8228 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" 8229 fi 8230 LDSHARED='$(CC) -dynamiclib -undefined dynamic_lookup' 8231 LDCXXSHARED='$(CXX) -dynamiclib -undefined dynamic_lookup' 8232 BLDSHARED="$LDSHARED" 8233 else if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 8226 8234 then 8227 8235 if test "${enable_universalsdk}"; then 8228 8236 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" … … 8245 8253 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 8246 8254 fi 8247 8255 fi 8256 fi 8248 8257 ;; 8249 8258 Linux*|GNU*|QNX*) 8250 8259 LDSHARED='$(CC) -shared'