summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-03-09 08:21:30 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-03-09 20:18:29 (GMT)
commitfe192908a4e3195b6f724310fe83fadaf18b66e7 (patch)
tree132474fd63998104611107a4224e0605c4c7bbf2
parent2d9c65f63f8e5ede6a080d5f2e1a10908d9b2a7e (diff)
downloadbuildroot-fe192908a4e3195b6f724310fe83fadaf18b66e7.tar.gz
buildroot-fe192908a4e3195b6f724310fe83fadaf18b66e7.tar.bz2
libglib2: use system pcre when available
By default, glib builds its own internal copy of the pcre library, but it also allows to use the one available from the system. Use this possibility when pcre is already selected in the Buildroot configuration. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/libglib2/libglib2.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index b108b89..4ca6ca3 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -81,6 +81,13 @@ LIBGLIB2_CONF_OPT += --with-libiconv=gnu
LIBGLIB2_DEPENDENCIES += libiconv
endif
+ifeq ($(BR2_PACKAGE_PCRE),y)
+LIBGLIB2_CONF_OPT += --with-pcre=system
+LIBGLIB2_DEPENDENCIES += pcre
+else
+LIBGLIB2_CONF_OPT += --with-pcre=internal
+endif
+
define LIBGLIB2_REMOVE_DEV_FILES
rm -rf $(TARGET_DIR)/usr/lib/glib-2.0
rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gettext