dev-libs/glib: Export PCRE_LIBS in the no-pkgconfig case
authorMart Raudsepp <leio@gentoo.org>
Tue, 11 Apr 2017 01:35:10 +0000 (04:35 +0300)
committerMart Raudsepp <leio@gentoo.org>
Tue, 11 Apr 2017 01:52:02 +0000 (04:52 +0300)
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

dev-libs/glib/glib-2.50.3-r1.ebuild

index 6ba56d741c2e891601efbdc667ffae151013464e..deabfe82c5905f776a81b20861db4c07558626a4 100644 (file)
@@ -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.