]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-android: Add PKG_CONFIG_PATH for glib.
authorUwe Hermann <redacted>
Fri, 16 Aug 2013 10:11:37 +0000 (12:11 +0200)
committerUwe Hermann <redacted>
Fri, 16 Aug 2013 10:12:00 +0000 (12:12 +0200)
Among other things, this fixes the build wrt ffi.h not being found.

  CC       libgobject_2_0_la-gclosure.lo
gclosure.c:29:17: fatal error: ffi.h: No such file or directory

cross-compile/android/sigrok-cross-android

index d314b2033d36083072930fc228fd98b163c009c9..72da7c8ae3dc14a16b5fea38573f37591f2e5505 100755 (executable)
@@ -124,12 +124,13 @@ make
 make install
 cd ..
 
 make install
 cd ..
 
-## # glib
+# glib
 wget https://github.com/djdeath/glib/archive/android.zip
 unzip -q android.zip
 cd glib-android
 ./autogen.sh
 wget https://github.com/djdeath/glib/archive/android.zip
 unzip -q android.zip
 cd glib-android
 ./autogen.sh
-LDFLAGS=-L$PREFIX/lib CPPFLAGS=-I$PREFIX/include glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=no ac_cv_func_posix_getgrgid_r=no ./configure $C --disable-modular-tests
+# Note: Manual LDFLAGS/CPPFLAGS needed for libiconv, rest uses pkg-config.
+PKG_CONFIG_PATH=$P LDFLAGS=-L$PREFIX/lib CPPFLAGS=-I$PREFIX/include glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=no ac_cv_func_posix_getgrgid_r=no ./configure $C --disable-modular-tests
 make
 make install
 cd ..
 make
 make install
 cd ..