]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-android: Enable zlib module in Python
authorMarcus Comstedt <redacted>
Sat, 26 Apr 2014 13:32:34 +0000 (15:32 +0200)
committerUwe Hermann <redacted>
Mon, 25 Aug 2014 20:38:43 +0000 (22:38 +0200)
cross-compile/android/Python-3.3.3.patch
cross-compile/android/sigrok-cross-android

index 476889ceb4f783901d672a86fe78e5dc4b38f061..70cb7355d42d9e8d8a33379efbcaed16e8cc0d63 100644 (file)
@@ -209,3 +209,12 @@ index 832df53..c43e5e9 100644
  
  except ImportError:
  
+--- a/Misc/python.pc.in 2014-04-26 23:16:09.108514880 +0200
++++ b/Misc/python.pc.in        2014-04-26 23:24:48.845467012 +0200
+@@ -9,5 +9,5 @@
+ Requires: 
+ Version: @VERSION@
+ Libs.private: @LIBS@
+-Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@
++Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@ -lz
+ Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@
index c31cb97e649a7c882a8a7d41b68ea570e85c5674..84a303ade85b24fd9fb6c2904ffa89c82350faab 100755 (executable)
@@ -123,6 +123,7 @@ make distclean
 autoreconf
 patch -p1 < ../../Python-$VER_PYTHON.patch
 ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no ac_cv_func_pipe2=no ac_cv_func_fdatasync=no ac_cv_func_killpg=no ac_cv_func_waitid=no ac_cv_func_sigaltstack=no ./configure $C --build=x86_64-linux-gnu --disable-ipv6
+sed -i "s/^#zlib/zlib/g" Modules/Setup
 make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen install $PARALLEL
 cd ..