Skip site navigation (1) Skip section navigation (2)

find libxml2 using pkg-config

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: find libxml2 using pkg-config
Date: 2013-01-14 11:51:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
In multi-arch OS installations, using a single foo-config script to find
libraries is problematic, because you don't know which architecture it
will point to, and you can't choose which one you want.  Using
pkg-config is better in that situation, because you can use its
environment variables to point to your preferred version
of /usr/lib*/pkgconfig or similar.

In configure, we use xml2-config and pthread-config.  The latter doesn't
exist on my system, so I'm just dealing with xml2-config now.

The attached patch looks for pkg-config first, and finds libxml2 using
that if available.  Otherwise it falls back to using xml2-config.

Attachment: pg-pkg-config-xml.patch
Description: text/x-patch (2.7 KB)


pgsql-hackers by date

Next:From: Peter EisentrautDate: 2013-01-14 11:57:52
Subject: passing diff options to pg_regress
Previous:From: Peter EisentrautDate: 2013-01-14 11:37:58
Subject: pg_ctl idempotent option

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group