Skip to content

Commit

Permalink
fix android build of glib
Browse files Browse the repository at this point in the history
  • Loading branch information
chrox committed Sep 30, 2015
1 parent a934866 commit 773db3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,18 @@ $(GLIB):
--with-libiconv=no --with-threads=posix \
--prefix=$(CURDIR)/$(GLIB_DIR) --without-included-gettext \
--with-gettext=no --enable-shared=glib --disable-static \
CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
$(if $(EMULATE_READER),,--host=$(CHOST) --cache-file=arm_cache.conf)
-cd $(GLIB_DIR) && $(MAKE) -j$(PROCESSORS) install
ifdef POCKETBOOK
cp -fL $(GLIB_DIR)/lib/$(notdir $(GLIB)) $(OUTPUT_DIR)/libs/$(notdir $(GLIB))
endif

$(GLIB_STATIC): $(LIBICONV) $(LIBGETTEXT)
echo -e "glib_cv_stack_grows=no\nglib_cv_uscore=no\n \
glib_cv_eventfd=no\n ac_cv_func_pipe2=no\n \
ac_cv_func_posix_getpwuid_r=no\nac_cv_func_posix_getgrgid_r=no\n" > \
$(GLIB_DIR)/arm_cache.conf
cd $(GLIB_DIR) && NOCONFIGURE=1 ./autogen.sh && CC="$(CC) -std=gnu89" ./configure \
--with-libiconv=gnu --with-threads=posix \
--prefix=$(CURDIR)/$(GLIB_DIR) --without-included-gettext \
Expand Down

0 comments on commit 773db3f

Please sign in to comment.