some patches for _ctypes compilation. Still it doesn't works.

This commit is contained in:
ivpusic 2013-08-23 14:16:31 +02:00
parent aedcd4e9eb
commit 43b613d9fa
4 changed files with 18 additions and 12 deletions

View file

@ -0,0 +1,2 @@
# Ctypes
_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c -I$(srcdir)/../../build/include/ffi

View file

@ -2,6 +2,7 @@
. $(dirname $0)/environment.sh . $(dirname $0)/environment.sh
try $(dirname $0)/build-libffi.sh
try $(dirname $0)/build-python.sh try $(dirname $0)/build-python.sh
try $(dirname $0)/reduce-python.sh try $(dirname $0)/reduce-python.sh
try $(dirname $0)/build-ios.sh try $(dirname $0)/build-ios.sh
@ -12,6 +13,7 @@ try $(dirname $0)/build-sdlmixer.sh
try $(dirname $0)/build-libjpeg.sh try $(dirname $0)/build-libjpeg.sh
try $(dirname $0)/build-pil.sh try $(dirname $0)/build-pil.sh
try $(dirname $0)/build-kivy.sh try $(dirname $0)/build-kivy.sh
try $(dirname $0)/build-pyobjus.sh
echo '== Build done' echo '== Build done'
echo "Available libraries in $BUILDROOT/lib" echo "Available libraries in $BUILDROOT/lib"

View file

@ -50,11 +50,12 @@ ln -s "$IOSSDKROOT/usr/lib/libgcc_s.1.dylib" extralibs/libgcc_s.10.4.dylib || ec
# Copy our setup for modules # Copy our setup for modules
try cp $KIVYIOSROOT/src/python_files/ModulesSetup Modules/Setup.local try cp $KIVYIOSROOT/src/python_files/ModulesSetup Modules/Setup.local
try cat $KIVYIOSROOT/src/python_files/ModulesSetup.mobile >> Modules/Setup.local
try cp $KIVYIOSROOT/src/python_files/_scproxy.py Lib/_scproxy.py try cp $KIVYIOSROOT/src/python_files/_scproxy.py Lib/_scproxy.py
try ./configure CC="$ARM_CC" LD="$ARM_LD" \ try ./configure CC="$ARM_CC" LD="$ARM_LD" \
CFLAGS="$ARM_CFLAGS" \ CFLAGS="$ARM_CFLAGS" \
LDFLAGS="$ARM_LDFLAGS -Lextralibs/ -lsqlite3" \ LDFLAGS="$ARM_LDFLAGS -Lextralibs/ -lsqlite3 -L$BUILDROOT/lib -undefined dynamic_lookup" \
--without-pymalloc \ --without-pymalloc \
--disable-toolbox-glue \ --disable-toolbox-glue \
--host=armv7-apple-darwin \ --host=armv7-apple-darwin \
@ -64,7 +65,8 @@ try ./configure CC="$ARM_CC" LD="$ARM_LD" \
try make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen \ try make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen \
CROSS_COMPILE_TARGET=yes CROSS_COMPILE_TARGET=yes
try make install HOSTPYTHON=./hostpython CROSS_COMPILE_TARGET=yes prefix="$BUILDROOT/python" try make install HOSTPYTHON=./hostpython CROSS_COMPILE_TARGET=yes \
prefix="$BUILDROOT/python"
try mv -f $BUILDROOT/python/lib/libpython2.7.a $BUILDROOT/lib/ try mv -f $BUILDROOT/python/lib/libpython2.7.a $BUILDROOT/lib/