Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2503249

Browse files
Fixes #1099: Mac compile fails with pydebug and framework enabled
Without this patch "./configure --with-pydebug --enable-framework CC=gcc-4.0" fails on MacOSX
1 parent d89ee79 commit 2503249

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

Makefile.pre.in

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -459,18 +459,12 @@ $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
459459
$(LIBRARY) \
460460
$(RESSRCDIR)/Info.plist
461461
$(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
462-
if test "${UNIVERSALSDK}"; then \
463-
$(CC) -o $(LDLIBRARY) @UNIVERSAL_ARCH_FLAGS@ -dynamiclib \
464-
-isysroot "${UNIVERSALSDK}" \
465-
-all_load $(LIBRARY) -Wl,-single_module \
466-
-install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \
467-
-compatibility_version $(VERSION) \
468-
-current_version $(VERSION) \
469-
-framework CoreFoundation $(LIBS); \
470-
else \
471-
/usr/bin/libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) \
472-
@LIBTOOL_CRUFT@ -framework CoreFoundation $(LIBS);\
473-
fi
462+
$(CC) -o $(LDLIBRARY) $(LDFLAGS) -dynamiclib \
463+
-all_load $(LIBRARY) -Wl,-single_module \
464+
-install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \
465+
-compatibility_version $(VERSION) \
466+
-current_version $(VERSION) \
467+
-framework CoreFoundation $(LIBS);
474468
$(INSTALL) -d -m $(DIRMODE) \
475469
$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj
476470
$(INSTALL_DATA) $(RESSRCDIR)/Info.plist \

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ Build
218218
support now looks for "__powerpc__" as well as "__ppc__": the latter seems to
219219
only be present on OS X; the former is the correct one for Linux with GCC.
220220

221+
- Issue #1099: Fix the build on MacOSX when building a framework with pydebug
222+
using GCC 4.0.
223+
221224
Tests
222225
-----
223226

0 commit comments

Comments
 (0)