On 8 January 2013 16:06, Enrico Scholz <[email protected]> wrote:
> how will you call this wrapper when e.g. makefile contains:
>
> | foo_CFLAGS = $(shell pkg-config --cflags foo)
You use PKG_CONFIG_FOR_BUILD, along with CC_FOR_BUILD etc.
> A more powerful approach might be to install it as 'pkg-config' under
> ${STAGING_BINDIR_NATIVE}/pkg-config-native/ and prepend this dir to
> $PATH when executing the makefile above.
This is for when cross-compiling a package that needs a native tool,
and building that tool is easiest with pkg-config. The pkg-config
binaries *need* to have different names.
Concrete example: I've a patch to GTK+3 which uses
PKG_CONFIG_FOR_BUILD to find a host gdk-pixbuf so it can build a
native gtk-update-icon-cache instead of depending on gtk+3-native.
This pkg-config needs a different name as otherwise it would be used
instead of the cross-pkg-config.
Ross
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core