add pkgconfig support to libksba and libassuan

Werner Koch wk at
Tue Dec 4 09:24:42 CET 2012

On Tue,  4 Dec 2012 07:57, Qi.Chen at said:

> packages in our system.  So, I'd really appreciate it if you could
> give me some more information about this.

pkg-config adds a lot of extra dependencies which needs to be resolved
before you can start to build even a simple project.  It even requires
the huge glib.  That contradicts the goal of configure which has been
designed to allow building on pre-POSIX platforms.

Cross-building does not work correctly with pkg-config; you may need to
write a wrapper to cope for inconsistencies of the system.

pkg-config might be useful in the GNOME or KDE environment where you
have lots of not so well defined libraries. However, it adds nothing to
portability of code.

Using a shell script instead of pkg-config is more flexible and solves
the same purposes.  Right, it is annoying to see several identical -I
and -L options on the cc line, but that is mostly an aesthetic issue.

Maintaining a shell script and a .pc file will lead to inconsistency and
weird bug reports.  Thus it is a waste of time.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-devel mailing list