aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin/depends/python26/Makefile.osx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/darwin/depends/python26/Makefile.osx')
-rw-r--r--tools/darwin/depends/python26/Makefile.osx13
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/darwin/depends/python26/Makefile.osx b/tools/darwin/depends/python26/Makefile.osx
index 51c115d7bf..f923940653 100644
--- a/tools/darwin/depends/python26/Makefile.osx
+++ b/tools/darwin/depends/python26/Makefile.osx
@@ -9,7 +9,14 @@ ARCHIVE=$(SOURCE).tar.bz2
# configuration settings
export OPT=$(CFLAGS)
CONFIGURE=./configure --prefix=$(PREFIX) \
- --enable-shared --disable-toolbox-glue --enable-unicode=ucs4
+ --enable-shared --disable-toolbox-glue --disable-framework --enable-unicode=ucs4
+
+CONFIGURE_NATIVE= CFLAGS="" CXXFLAGS="" LDFLAGS="" CPPFLAGS="" \
+ CPP="/usr/bin/cpp" \
+ CC="gcc-4.2" \
+ CXX="g++-4.2" \
+ LD="ld" \
+ ./configure --prefix=$(TOOLCHAIN) --enable-shared --disable-toolbox-glue --disable-framework
LIBDYLIB=$(SOURCE)/libpython2.6.dylib
@@ -24,6 +31,10 @@ $(LIBDYLIB): $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
# http://bugs.python.org/issue6869
cd $(SOURCE); patch -p1 < ../Python-2.6-ctypes.patch
+ cd $(SOURCE); $(CONFIGURE_NATIVE)
+ cd $(SOURCE); make -j $(MAKE_JOBS)
+ cd $(SOURCE); make install
+ cd $(SOURCE); make distclean
cd $(SOURCE); $(CONFIGURE)
# python2.6 has an issue detecting and using the same version of openssl in configure and setup.py
# this forces python2.6 hashlib to be compatible with osx 10.4 boxes.