]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-android: Fix iconv build
authorMarcus Comstedt <redacted>
Thu, 15 Aug 2013 13:53:23 +0000 (15:53 +0200)
committerMarcus Comstedt <redacted>
Thu, 15 Aug 2013 21:15:04 +0000 (23:15 +0200)
cross-compile/android/sigrok-cross-android

index 36de77562cc13f18ff89e851b89baf2f3ae46cf0..9c67c616c2295fdd20abf37a33a0f7b5a6029044 100755 (executable)
@@ -65,19 +65,26 @@ git clone git://git.savannah.gnu.org/config.git
 
 # -----------------------------------------------------------------------------
 
-## # TODO: Doesn't build yet.
-## # libiconv (needed for glib)
-## wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-$VER_LIBICONV.tar.gz
-## tar xfz libiconv-$VER_LIBICONV.tar.gz
-## cd libiconv-$VER_LIBICONV
-## cp -f ../config/config.guess build-aux
-## cp -f ../config/config.sub build-aux
-## cp -f ../config/config.guess libcharset/build-aux
-## cp -f ../config/config.sub libcharset/build-aux
-## ./configure $C
-## make
-## make install
-## cd ..
+# libiconv (needed for glib)
+wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-$VER_LIBICONV.tar.gz
+tar xfz libiconv-$VER_LIBICONV.tar.gz
+cd libiconv-$VER_LIBICONV
+cp -f ../config/config.guess build-aux
+cp -f ../config/config.sub build-aux
+cp -f ../config/config.guess libcharset/build-aux
+cp -f ../config/config.sub libcharset/build-aux
+./configure $C --enable-shared
+make lib/localcharset.h
+cd libcharset
+make
+make install
+cd ../lib
+make
+make install
+cd ..
+test -d $PREFIX/include || mkdir $PREFIX/include
+cp include/iconv.h.inst $PREFIX/include/iconv.h
+cd ..
 
 ## # TODO: Needs libiconv
 ## # gettext (needed for glib)