cross-compile and pkgconfig

Enrico Weigelt weigelt at metux.de
Fri Sep 16 10:58:37 PDT 2005


* JLM aka cityhunter <jlm_devel at laposte.net> schrieb:

<snip>
> sysroot isn't clean though....my experience (it may have changed now) 
> shows that even with a sysroot the crosschain end seeking for includes 
> in  /usr/include and for libs in /lib /usr/lib and so one if he can't 
> find it in SYSROOT/usr/include (....) 

yeah, the common problem with autoshit + libfool.
That's why I had to write my own libtool ...

<snip>
> for libs this isn't bothering since elf contain information about the 
> platform for which the libs has been build.... 

Oh, it does. 

I'm using cross-toolchains also to build for the same platform/arch,
but different libc version. If there are some strange symbols 
(ie. coming from libc) missing, then someone (normally autoconf)
messed up pathes.


BTW the story gets even funnier, if your package uses libtool to
link against other fooled libs and looks for the .la files in the 
wrong place. Or just if you're happy that you could supply your own
library path within the sysroot, it writes *this sysroot'ed* path
down in the .la files.


cu

PS: are you subscribed to the list ? would be nice if we could
omit CC'ing.
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact at metux.de
  cellphone: +49 174 7066481
---------------------------------------------------------------------
 -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------


More information about the pkg-config mailing list