sigrok-cross-android: Avoid building C++ libraries
authorMarcus Comstedt <marcus@mc.pp.se>
Thu, 15 Aug 2013 13:07:25 +0000 (15:07 +0200)
committerMarcus Comstedt <marcus@mc.pp.se>
Thu, 15 Aug 2013 21:15:04 +0000 (23:15 +0200)
The Android NDK doesn't ship C++ includes, so skip building C++
support in libpcre and libusb (we don't need it anyway).

cross-compile/android/sigrok-cross-android

index 825bc154b9cead85e4005e7bc563952f415c30e7..36de77562cc13f18ff89e851b89baf2f3ae46cf0 100755 (executable)
@@ -103,7 +103,7 @@ cd ..
 wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$VER_PCRE.tar.gz
 tar xfvz pcre-$VER_PCRE.tar.gz
 cd pcre-$VER_PCRE
-./configure $C
+./configure $C --disable-cpp
 make
 make install
 cd ..
@@ -145,8 +145,9 @@ cd libusb-$VER_LIBUSB
 cp -f ../config/config.guess .
 cp -f ../config/config.sub .
 ./configure $C
-make
-make install
+# explicitly exclude libusbpp.la from lib_LTLIBRARIES, and skip subdirs
+make lib_LTLIBRARIES=libusb.la SUBDIRS=.
+make lib_LTLIBRARIES=libusb.la SUBDIRS=. install
 cd ..
 
 # libftdi