Problems at cross-compiling pkg-config-0.23

Enrico Weigelt weigelt at
Tue Nov 10 04:46:37 PST 2009

* John Taylor <pi00100100 at> schrieb:
> Hello,
> I'm trying to cross-compile pkg-config-0.23. The host system is
> i686-unknown-linux-gnu, while the target system is
> x86_64-unknown-linux-gnu. After having issued the configure
> --prefix=/mnt/clfs/cross-tools/usr --build=i686-unknown-linux-gnu
> --host=x86_64-unknown-linux-gnu I get the following error message:
> checking for extra flags to get ANSI library prototypes... configure:
> error: cannot run test program while cross compiling
> See `config.log' for more details.
> configure: error: ../../pkg-config-0.23/glib-1.2.10/configure failed
> for glib-1.2.10

The bundled glib-1.2.10 is not crosscompile'able.

Look at glib-1.2.10/ once you use AC_TRY_RUN, your
package cannot crosscompile. A very common standard error in
autoconf-based packages ...

 Enrico Weigelt    ==   metux IT service -
 Please visit the OpenSource QM Taskforce:
 Patches / Fixes for a lot dozens of packages in dozens of versions:

More information about the pkg-config mailing list