[OE-core] [PATCH] pkgconfig: add -native script that uses the native sysroot instead of target
Burton, Ross
ross.burton at intel.com
Tue Jan 8 16:15:42 UTC 2013
On 8 January 2013 16:06, Enrico Scholz <enrico.scholz at sigma-chemnitz.de> 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
More information about the Openembedded-core
mailing list