From fe192908a4e3195b6f724310fe83fadaf18b66e7 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 9 Mar 2013 08:21:30 +0000 Subject: [PATCH] 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 Signed-off-by: Peter Korsgaard --- package/libglib2/libglib2.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk index b108b89c04..4ca6ca3cbd 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 -- 2.30.2