Re: Crosscompile problem
* Neil Williams <codehelp@debian.org> schrieb:
> Define the PKG_CONFIG_LIBPATH
This only tells it where to look for .pc files. But it doesn't
make it rewrite certain -L / -I flags - and they *must* be rewritten,
otherwise they point to wrong locations (into the host system).
see PKG_CONFIG_SYSROOT_DIR
> > You should use sysroot.
>
> No. sysroot is not a suitable solution for this. Just use the support
> which already exists.
Crosscompiling w/o sysroot is simply stupid. Period.
You'll have to do too many hacks for proper path rewriting.
And: NO, simply using own --prefix+friends will NOT suffice.
cu
--
----------------------------------------------------------------------
Enrico Weigelt, metux IT service -- http://www.metux.de/
phone: +49 36207 519931 email: weigelt@metux.de
mobile: +49 151 27565287 icq: 210169427 skype: nekrad666
----------------------------------------------------------------------
Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
Reply to: