Skip to content

Commit 5c19816

Browse files
committed
Merge pull request kivy#375 from kived/ctypes-fix
fix ctypes build errors
2 parents 2bf5e03 + c10b5ef commit 5c19816

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

recipes/python/recipe.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ function build_python() {
7878
try cp $BUILD_hostpython/hostpython .
7979
try cp $BUILD_hostpython/hostpgen .
8080

81+
export BUILDARCH=$(gcc -dumpmachine)
82+
export HOSTARCH=arm-eabi
83+
8184
push_arm
8285

8386
# openssl activated ?
@@ -96,8 +99,6 @@ function build_python() {
9699

97100
# CFLAGS for python ctypes library
98101
#export CFLAGS="$CFLAGS -DNO_MALLINFO"
99-
export BUILDARCH=x86_64-linux-gnu
100-
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
103104
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() {
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.*-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)