File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ function build_python() {
78
78
try cp $BUILD_hostpython /hostpython .
79
79
try cp $BUILD_hostpython /hostpgen .
80
80
81
+ export BUILDARCH=$( gcc -dumpmachine)
82
+ export HOSTARCH=arm-eabi
83
+
81
84
push_arm
82
85
83
86
# openssl activated ?
@@ -96,8 +99,6 @@ function build_python() {
96
99
97
100
# CFLAGS for python ctypes library
98
101
# export CFLAGS="$CFLAGS -DNO_MALLINFO"
99
- export BUILDARCH=x86_64-linux-gnu
100
- export HOSTARCH=arm-eabi
101
102
102
103
try ./configure --host=$HOSTARCH --build=$BUILDARCH OPT=$OFLAG --prefix=" $BUILD_PATH /python-install" --enable-shared --disable-toolbox-glue --disable-framework
103
104
echo ./configure --host=$HOSTARCH --build=$BUILDARCH OPT=$OFLAG --prefix=" $BUILD_PATH /python-install" --enable-shared --disable-toolbox-glue --disable-framework
@@ -124,7 +125,7 @@ function build_python() {
124
125
fi
125
126
try cp $BUILD_hostpython /hostpython $HOSTPYTHON
126
127
try cp libpython2.7.so $LIBS_PATH /
127
- try cp -a build/lib.linux-x86_64 -2.7/_ctypes* .so $LIBS_PATH
128
+ try cp -a build/lib.* -2.7/_ctypes* .so $LIBS_PATH
128
129
129
130
# reduce python
130
131
rm -rf " $BUILD_PATH /python-install/lib/python2.7/test"
You can’t perform that action at this time.
0 commit comments