File tree 2 files changed +28
-0
lines changed
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() {
33
33
system=$( uname -s)
34
34
if [ " X$system " == " XDarwin" ]; then
35
35
try patch -p1 < $RECIPE_python /patches/fix-configure-darwin.patch
36
+ try patch -p1 < $RECIPE_python /patches/fix-distutils-darwin.patch
36
37
fi
37
38
38
39
# everything done, touch the marker !
@@ -62,6 +63,9 @@ function build_python() {
62
63
export LDFLAGS=" $LDFLAGS -L$BUILD_openssl /"
63
64
fi
64
65
66
+ # dunno why on darwin this is not working...
67
+ export LDFLAGS=" $LDFLAGS -L$BUILD_python -lpython2.7"
68
+
65
69
try ./configure --host=arm-eabi --prefix=" $BUILD_PATH /python-install" --enable-shared --disable-toolbox-glue --disable-framework
66
70
echo ./configure --host=arm-eabi --prefix=" $BUILD_PATH /python-install" --enable-shared --disable-toolbox-glue --disable-framework
67
71
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