On Thu, Oct 11, 2012 at 8:08 PM, Peter Stuge <[email protected]> wrote:
> Jonathan Dumaresq wrote:
>> What I missed. Or What i did wrong ?
>
> You are massively over-complicating the entire process, probably
> because of inexperience with autotools crosscompiling. There are
> guides on the topic online.
>
> You need to set --host and --prefix when you run configure, and you
> have to make sure to set PKG_CONFIG_PATH, but the rest is pretty much
> automatic.

I'm sorry but that's wrong. PKG_CONFIG_PATH only *adds* to the default
search path and so is useless for cross compiling where you don't want
pkg-config to give any results pointing to the build machine's lib if
you don't have (or don't want to use) the host lib. Luckily there's
another variable, PKG_CONFIG_LIBDIR, that supposedly does the right
thing.

/Andreas

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to