diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-03-09 08:21:30 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-03-09 21:18:29 +0100 |
commit | fe192908a4e3195b6f724310fe83fadaf18b66e7 (patch) | |
tree | 132474fd63998104611107a4224e0605c4c7bbf2 | |
parent | 2d9c65f63f8e5ede6a080d5f2e1a10908d9b2a7e (diff) | |
download | buildroot-novena-fe192908a4e3195b6f724310fe83fadaf18b66e7.tar.gz buildroot-novena-fe192908a4e3195b6f724310fe83fadaf18b66e7.zip |
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.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk index b108b89c0..4ca6ca3cb 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 |