File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ --- Python-2.7.2.orig/Lib/distutils/command/build_ext.py 2011-06-11 17:46:24.000000000 +0200
2+ +++ Python-2.7.2/Lib/distutils/command/build_ext.py 2012-08-01 18:32:13.000000000 +0200
3+ @@ -236,7 +236,7 @@
4+ # Python's library directory must be appended to library_dirs
5+ sysconfig.get_config_var('Py_ENABLE_SHARED')
6+ if ((sys.platform.startswith('linux') or sys.platform.startswith('gnu')
7+ - or sys.platform.startswith('sunos'))
8+ + or sys.platform.startswith('sunos') or sys.platform.startswith('darwin'))
9+ and sysconfig.get_config_var('Py_ENABLE_SHARED')):
10+ if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
11+ # building third party extensions
12+ @@ -750,9 +750,9 @@
13+ # extensions, it is a reference to the original list
14+ return ext.libraries + [pythonlib, "m"] + extra
15+
16+ - elif sys.platform == 'darwin':
17+ - # Don't use the default code below
18+ - return ext.libraries
19+ + #elif sys.platform == 'darwin':
20+ + # # Don't use the default code below
21+ + # return ext.libraries
22+ elif sys.platform[:3] == 'aix':
23+ # Don't use the default code below
24+ return ext.libraries
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ function prebuild_python() {
3333 system=$( uname -s)
3434 if [ " X$system " == " XDarwin" ]; then
3535 try patch -p1 < $RECIPE_python /patches/fix-configure-darwin.patch
36+ try patch -p1 < $RECIPE_python /patches/fix-distutils-darwin.patch
3637 fi
3738
3839 # everything done, touch the marker !
@@ -62,6 +63,9 @@ function build_python() {
6263 export LDFLAGS=" $LDFLAGS -L$BUILD_openssl /"
6364 fi
6465
66+ # dunno why on darwin this is not working...
67+ export LDFLAGS=" $LDFLAGS -L$BUILD_python -lpython2.7"
68+
6569 try ./configure --host=arm-eabi --prefix=" $BUILD_PATH /python-install" --enable-shared --disable-toolbox-glue --disable-framework
6670 echo ./configure --host=arm-eabi --prefix=" $BUILD_PATH /python-install" --enable-shared --disable-toolbox-glue --disable-framework
6771 echo $MAKE HOSTPYTHON=$BUILD_python /hostpython HOSTPGEN=$BUILD_python /hostpgen CROSS_COMPILE_TARGET=yes INSTSONAME=libpython2.7.so
You can’t perform that action at this time.
0 commit comments