Browse Source

- libglib2: fix build; align patch

master
vanhofen 6 years ago
parent
commit
4a33031219
  1. 4
      archive-patches/libglib2-disable-tests.patch
  2. 16
      make/system-libs.mk

4
archive-patches/libglib2-disable-tests.patch

@ -23,7 +23,7 @@ index 008ad58..007332d 100644
ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
-SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs tests
+SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs
+SUBDIRS = . m4macros glib gmodule gthread gobject gio
DIST_SUBDIRS = $(SUBDIRS) build win32
bin_SCRIPTS = glib-gettextize
@ -31,7 +31,7 @@ diff --git a/gio/Makefile.am b/gio/Makefile.am
index 67db1b7..78309b5 100644
--- a/gio/Makefile.am
+++ b/gio/Makefile.am
@@ -244,7 +244,7 @@ platform_libadd += win32/libgiowin32.la
@@ -253,7 +253,7 @@ platform_libadd += win32/libgiowin32.la
platform_deps += win32/libgiowin32.la
endif

16
make/system-libs.mk

@ -1022,14 +1022,18 @@ ifeq ($(BOXSERIES), hd1)
LIBGLIB2_CONF = --enable-static --disable-shared
endif
LIBGLIB2_PATCH = libglib2-disable-tests.patch
$(D)/libglib2: $(ARCHIVE)/glib-$(GLIB_VER).tar.xz $(D)/zlib $(LIBGLIB2_DEPS) $(D)/libffi | $(TARGET_DIR)
$(REMOVE)/glib-$(GLIB_VER)
$(UNTAR)/glib-$(GLIB_VER).tar.xz
cd $(BUILD_TMP)/glib-$(GLIB_VER); \
$(PATCH)/libglib2-disable-tests.patch; \
$(CHDIR)/glib-$(GLIB_VER); \
$(call apply_patches, $(LIBGLIB2_PATCH)); \
echo "ac_cv_type_long_long=yes" > arm-linux.cache; \
echo "glib_cv_stack_grows=no" >> arm-linux.cache; \
echo "glib_cv_uscore=no" >> arm-linux.cache; \
echo "glib_cv_va_copy=no" >> arm-linux.cache; \
echo "glib_cv_va_val_copy=yes" >> arm-linux.cache; \
echo "ac_cv_func_posix_getpwuid_r=yes" >> arm-linux.cache; \
echo "ac_cv_func_posix_getgrgid_r=yes" >> arm-linux.cache; \
autoreconf -fi; \
@ -1037,14 +1041,16 @@ $(D)/libglib2: $(ARCHIVE)/glib-$(GLIB_VER).tar.xz $(D)/zlib $(LIBGLIB2_DEPS) $(D
--prefix= \
--datarootdir=/.remove \
--cache-file=arm-linux.cache \
--enable-debug=no \
--disable-debug \
--disable-selinux \
--enable-libmount=no \
--disable-libmount \
--disable-fam \
--disable-gtk-doc \
--disable-gtk-doc-html \
--with-threads="posix" \
--with-pcre=internal \
$(LIBGLIB2_CONF) \
; \
$(MAKE) all; \
$(MAKE) install DESTDIR=$(TARGET_DIR)
rm -rf $(TARGET_DIR)/bin/gapplication
rm -rf $(TARGET_DIR)/bin/gdbus*

Loading…
Cancel
Save