Skip to content

Commit c67e2c1

Browse files
committed
don't assume x86_64
1 parent 2bf5e03 commit c67e2c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

recipes/python/recipe.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ function build_python() {
9696

9797
# CFLAGS for python ctypes library
9898
#export CFLAGS="$CFLAGS -DNO_MALLINFO"
99-
export BUILDARCH=x86_64-linux-gnu
99+
machine=`uname -m`
100+
export BUILDARCH=${machine}-linux-gnu
100101
export HOSTARCH=arm-eabi
101102

102103
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() {
124125
fi
125126
try cp $BUILD_hostpython/hostpython $HOSTPYTHON
126127
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
128129

129130
# reduce python
130131
rm -rf "$BUILD_PATH/python-install/lib/python2.7/test"

0 commit comments

Comments
 (0)