summaryrefslogtreecommitdiffstats
path: root/package/libglib2/libglib2.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/libglib2/libglib2.mk')
-rw-r--r--package/libglib2/libglib2.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 67db5ac359..b112b84f99 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -112,9 +112,14 @@ HOST_LIBGLIB2_DEPENDENCIES = \
host-util-linux \
host-zlib
+# We explicitly specify a giomodule-dir to avoid having a value
+# containing ${libdir} in gio-2.0.pc. Indeed, a value depending on
+# ${libdir} would be prefixed by the sysroot by pkg-config, causing a
+# bogus installation path once combined with $(DESTDIR).
LIBGLIB2_CONF_OPTS = \
--with-pcre=system \
- --disable-compile-warnings
+ --disable-compile-warnings \
+ --with-gio-module-dir=/usr/lib/gio/modules
ifneq ($(BR2_ENABLE_LOCALE),y)
LIBGLIB2_DEPENDENCIES += libiconv
OpenPOWER on IntegriCloud