redland/raptor: use system xml2-config only on MacOSX
commit1067c32964e4e0754d2d926e1319b4060ded93f5
authorMichael Stahl <Michael.Stahl@cib.de>
Wed, 7 Aug 2019 10:24:09 +0000 (7 12:24 +0200)
committerMichael Stahl <Michael.Stahl@cib.de>
Wed, 7 Aug 2019 11:14:05 +0000 (7 13:14 +0200)
tree2d8e4693be2abc2720f69312958be7de8761cf92
parent551552f18f4319e23f604e0b17ecaf0a534494e1
redland/raptor: use system xml2-config only on MacOSX

On Fedora 30, we get:

instdir/program/libraptor2-lo.so.0 has suspicious NEEDED: liblzma.so.5

Because:
> xml2-config --libs
-lxml2 -lz -llzma -lm -ldl

However:
> pkg-config --libs libxml-2.0
-lxml2

So prefer pkg-config for system libxml2, except on MacOSX, where
people claim that pkg-config leads to disaster.

Change-Id: I29ffd2ced769d7111c4de17de53082db2e2ba326
Reviewed-on: https://gerrit.libreoffice.org/77093
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
external/redland/ExternalProject_raptor.mk