File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ function build_python() {
96
96
97
97
# CFLAGS for python ctypes library
98
98
# export CFLAGS="$CFLAGS -DNO_MALLINFO"
99
- export BUILDARCH=x86_64-linux-gnu
99
+ machine=` uname -m`
100
+ export BUILDARCH=${machine} -linux-gnu
100
101
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
@@ -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.linux-${machine} -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