cross compiling

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


* Alexander Vasiliev <alexvasiljev at gmail.com> 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.

cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------


More information about the pkg-config mailing list