pkg-config and cross-compiling redux

Owen Taylor otaylor at
Sat Nov 1 21:08:15 EET 2003

There's a long discussion in:

Between Rüdiger Kuhlmann and me about enhancing pkg-config for cross
compilation. I'd appreciate it if those interested in the subject
would read the bug report and comment (here perhaps, since the bug
report is already reaching proportions.)

To summarize briefly, some of the proposals that are made there

 - Make pkgconfig.m4 use AC_PATH_TOOL so it finds <host>-pkg-config 

 - When pkg-config is invoked as <host>-pkg-config, have it extract
   the <host> part and substitute it for occurrences of $HOST in

 - Add a $PKG_CONFIG_CROSS_LIBDIR variable to allow configuration
   of cross compilation as above while not disturbing native 

   with subtitution as above that would set a $_destdir variable.
   This would allow .pc files to be written so they work either
   on the host or target system.

(These proposals are filtered through my personal preferences;
Rüdiger proposed somewhat different forms that amount to basically
the same thing)


More information about the xdg mailing list