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>
This commit is contained in:
parent
2d9c65f63f
commit
fe192908a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user