File tree 12 files changed +48
-17
lines changed
12 files changed +48
-17
lines changed Original file line number Diff line number Diff line change @@ -135,9 +135,9 @@ function push_arm() {
135
135
# export OFLAG="-Os"
136
136
# export OFLAG="-O2"
137
137
138
- export CFLAGS=" -DANDROID -mandroid $OFLAG -fomit-frame-pointer --sysroot $NDKPLATFORM "
138
+ export CFLAGS=" -DANDROID -mandroid $OFLAG -g - fomit-frame-pointer --sysroot $NDKPLATFORM "
139
139
if [ " X$ARCH " == " Xarmeabi-v7a" ]; then
140
- CFLAGS+=" -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb"
140
+ CFLAGS+=" -march=armv7-a -g - mfloat-abi=softfp -mfpu=vfp -mthumb"
141
141
fi
142
142
export CXXFLAGS=" $CFLAGS "
143
143
@@ -614,10 +614,10 @@ function run_distribute() {
614
614
try rm -rf lib-dynload/_ctypes_test.so
615
615
try rm -rf lib-dynload/_testcapi.so
616
616
617
- debug " Strip libraries"
618
- push_arm
619
- try find " $DIST_PATH " /private " $DIST_PATH " /libs -iname ' *.so' -exec $STRIP {} \;
620
- pop_arm
617
+ # debug "Strip libraries"
618
+ # push_arm
619
+ # try find "$DIST_PATH"/private "$DIST_PATH"/libs -iname '*.so' -exec $STRIP {} \;
620
+ # pop_arm
621
621
622
622
}
623
623
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function build_cymunk() {
20
20
21
21
try find . -iname ' *.pyx' -exec cython {} \;
22
22
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
23
- try find build/lib.* -name " *.o" -exec $STRIP {} \;
23
+ # try find build/lib.* -name "*.o" -exec $STRIP {} \;
24
24
25
25
export PYTHONPATH=$BUILD_hostpython /Lib/site-packages
26
26
try $BUILD_hostpython /hostpython setup.py install -O2 --root=$BUILD_PATH /python-install --install-lib=lib/python2.7/site-packages
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ function build_hostpython() {
22
22
return
23
23
fi
24
24
25
- try ./configure
26
- try make -j5
27
- try mv Parser/pgen hostpgen
25
+ try ./configure
26
+ try make -j5
27
+ try mv Parser/pgen hostpgen
28
28
29
29
if [ -f python.exe ]; then
30
30
try mv python.exe hostpython
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function build_kivy() {
27
27
$BUILD_PATH /python-install/bin/python.host setup.py build_ext
28
28
try find . -iname ' *.pyx' -exec cython {} \;
29
29
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
30
- try find build/lib.* -name " *.o" -exec $STRIP {} \;
30
+ # try find build/lib.* -name "*.o" -exec $STRIP {} \;
31
31
try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
32
32
33
33
try rm -rf $BUILD_PATH /python-install/lib/python* /site-packages/kivy/tools
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function build_lxml() {
30
30
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -I$BUILD_libxml2 /include -I$BUILD_libxslt
31
31
try find . -iname ' *.pyx' -exec cython {} \;
32
32
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
33
- try find build/lib.* -name " *.o" -exec $STRIP {} \;
33
+ # try find build/lib.* -name "*.o" -exec $STRIP {} \;
34
34
35
35
export PYTHONPATH=$BUILD_hostpython /Lib/site-packages
36
36
try $BUILD_hostpython /hostpython setup.py install -O2 --root=$BUILD_PATH /python-install --install-lib=lib/python2.7/site-packages
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function build_pycrypto() {
29
29
try ./configure --host=arm-eabi --prefix=" $BUILD_PATH /python-install" --enable-shared
30
30
31
31
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
32
- try find build/lib.* -name " *.o" -exec $STRIP {} \;
32
+ # try find build/lib.* -name "*.o" -exec $STRIP {} \;
33
33
34
34
try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
35
35
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function build_pygame() {
36
36
export LDFLAGS=" $LDFLAGS -L$LIBS_PATH -L$SRC_PATH /obj/local/$ARCH / -lm -lz"
37
37
export LDSHARED=" $LIBLINK "
38
38
try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
39
- try find build/lib.* -name " *.o" -exec $STRIP {} \;
39
+ # try find build/lib.* -name "*.o" -exec $STRIP {} \;
40
40
41
41
try rm -rf $BUILD_PATH /python-install/lib/python* /site-packages/pygame/docs
42
42
try rm -rf $BUILD_PATH /python-install/lib/python* /site-packages/pygame/examples
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ function build_pyjnius() {
28
28
$BUILD_PATH /python-install/bin/python.host setup.py build_ext
29
29
try find . -iname ' *.pyx' -exec cython {} \;
30
30
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
31
- try find build/lib.* -name " *.o" -exec $STRIP {} \;
31
+ # try find build/lib.* -name "*.o" -exec $STRIP {} \;
32
32
try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
33
33
try cp -a jnius/src/org $JAVACLASS_PATH
34
34
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function build_pyopenssl() {
31
31
export LDFLAGS=" $LDFLAGS -L$LIBS_PATH -L$BUILD_openssl "
32
32
33
33
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
34
- try find build/lib.* -name " *.o" -exec $STRIP {} \;
34
+ # try find build/lib.* -name "*.o" -exec $STRIP {} \;
35
35
36
36
try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
37
37
Original file line number Diff line number Diff line change
1
+ --- Python-2.7.2/configure.in.orig 2012-11-08 01:03:36.098872991 +0100
2
+ +++ Python-2.7.2/configure.in 2012-11-08 01:04:46.783218535 +0100
3
+ @@ -938,11 +938,11 @@
4
+ # debug builds.
5
+ OPT="-g -O0 -Wall $STRICT_PROTO"
6
+ else
7
+ - OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
8
+ + OPT="-g $WRAP -O0 -Wall $STRICT_PROTO"
9
+ fi
10
+ ;;
11
+ *)
12
+ - OPT="-O3 -Wall $STRICT_PROTO"
13
+ + OPT="-O0 -Wall $STRICT_PROTO"
14
+ ;;
15
+ esac
16
+ case $ac_sys_system in
17
+ @@ -1126,7 +1126,7 @@
18
+ if test "$Py_DEBUG" = 'true'; then
19
+ :
20
+ else
21
+ - OPT="-DNDEBUG $OPT"
22
+ + OPT="-DNDEBUG $OPT -O0"
23
+ fi
24
+
25
+ if test "$ac_arch_flags"
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ function prebuild_python() {
32
32
try patch -p1 < $RECIPE_python /patches/fix-dynamic-lookup.patch
33
33
try patch -p1 < $RECIPE_python /patches/fix-dlfcn.patch
34
34
35
+ # for debug
36
+ try patch -p1 < $RECIPE_python /patches/no-optim.patch
37
+
35
38
system=$( uname -s)
36
39
if [ " X$system " == " XDarwin" ]; then
37
40
try patch -p1 < $RECIPE_python /patches/fix-configure-darwin.patch
@@ -72,6 +75,9 @@ function build_python() {
72
75
export LDFLAGS=" $LDFLAGS -L$SRC_PATH /obj/local/$ARCH /"
73
76
fi
74
77
78
+ # ok, it's a bit ugly
79
+ sed ' s/-O3/-O0/' -i configure
80
+
75
81
try ./configure --host=arm-eabi --prefix=" $BUILD_PATH /python-install" --enable-shared --disable-toolbox-glue --disable-framework
76
82
echo ./configure --host=arm-eabi --prefix=" $BUILD_PATH /python-install" --enable-shared --disable-toolbox-glue --disable-framework
77
83
echo $MAKE HOSTPYTHON=$BUILD_python /hostpython HOSTPGEN=$BUILD_python /hostpgen CROSS_COMPILE_TARGET=yes INSTSONAME=libpython2.7.so
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function build_twisted() {
29
29
$BUILD_PATH /python-install/bin/python.host setup.py build_ext
30
30
try find . -iname ' *.pyx' -exec cython {} \;
31
31
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
32
- try find build/lib.* -name " *.o" -exec $STRIP {} \;
32
+ # try find build/lib.* -name "*.o" -exec $STRIP {} \;
33
33
34
34
try $BUILD_hostpython /hostpython setup.py install -O2 --root=$BUILD_PATH /python-install --install-lib=lib/python2.7/site-packages
35
35
You can’t perform that action at this time.
0 commit comments