From: Mart Raudsepp Date: Tue, 11 Apr 2017 01:35:10 +0000 (+0300) Subject: dev-libs/glib: Export PCRE_LIBS in the no-pkgconfig case X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cd4ccb9ea11b995ec9ecc751ab57241fbef78195;p=gentoo.git dev-libs/glib: Export PCRE_LIBS in the no-pkgconfig case We have by now started to use the system libpcre unconditionally, instead of the bundled version, but this needs pkgconfig to be found. So we need to handle this in the no-pkgconfig case as well, alongside FFI. However this suggests there is no point in this case anymore and we should just build depend on pkgconfig, as we can't get a working pkgconfig anymore without bootstrapping it via USE=internal-glib as libpcre currently needs pkgconfig as a build dependency already. Until this is still in the pondering phase, this PCRE_LIBS exporting should at least fix the cases where pkgconfig got depcleaned inbetween but libpcre exists on system. Gentoo-bug: 615092 --- diff --git a/dev-libs/glib/glib-2.50.3-r1.ebuild b/dev-libs/glib/glib-2.50.3-r1.ebuild index 6ba56d741c2e..deabfe82c590 100644 --- a/dev-libs/glib/glib-2.50.3-r1.ebuild +++ b/dev-libs/glib/glib-2.50.3-r1.ebuild @@ -148,6 +148,8 @@ multilib_src_configure() { fi export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" export LIBFFI_LIBS="-lffi" + export PCRE_CFLAGS="" + export PCRE_LIBS="-lpcre" fi # These configure tests don't work when cross-compiling.