cross compiling

Enrico Weigelt weigelt at
Sun Apr 6 10:28:42 PDT 2008

* Alexander Vasiliev <alexvasiljev at> schrieb:

> The last lines were:
> "checking for a BSD-compatible install... /usr/bin/install -c
> checking for extra flags to get ANSI library prototypes... configure:
> error: cannot run test program while cross compiling

Very simple: *NEVER EVER* use AC_TRY_RUN.
It kills crosscompiling.

This is one of the most and worst mistakes on ac'ed packages.
In fact, *ANY* macro that expects the building system to be
equal the target system are *CRAP*.

I just had a quick look at 0.22 - the bundled glib has lot's 
of AC_TRY_RUN's, so it's not crosscompile'able.

 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