[Buildroot] [PATCH 1/3] host-pkgconf: install pkg-config-native
Peter Korsgaard
jacmet at uclibc.org
Mon Oct 6 19:47:17 UTC 2014
>>>>> "Eric" == Eric Le Bihan <eric.le.bihan.dev at free.fr> writes:
> The package host-pkgconf now provides `pkg-config-native`, which uses the
> host native sysroot. It is useful for packages which compile build-time
> helper tools (such as Gtk+ 3.0).
> Signed-off-by: Eric Le Bihan <eric.le.bihan.dev at free.fr>
> ---
> package/pkgconf/pkg-config-native.in | 3 +++
> package/pkgconf/pkgconf.mk | 8 ++++++++
> 2 files changed, 11 insertions(+)
> create mode 100644 package/pkgconf/pkg-config-native.in
> diff --git a/package/pkgconf/pkg-config-native.in b/package/pkgconf/pkg-config-native.in
> new file mode 100644
> index 0000000..7e25cd2
> --- /dev/null
> +++ b/package/pkgconf/pkg-config-native.in
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +PKG_CONFIG_LIBDIR=@HOST_DIR@/usr/lib/pkgconfig:@HOST_DIR@/usr/share/pkgconfig @HOST_DIR@/usr/bin/pkgconf $@
Why is that needed? host-pkgconf is already built with
--prefix=$HOST_DIR/usr, so it does the right thing:
strace output/host/usr/bin/pkgconf --cflags blah 2>&1 |grep blah ~/source/buildroot
execve("output/host/usr/bin/pkgconf", ["output/host/usr/bin/pkgconf", "--cflags", "blah"], [/* 50 vars */]) = 0
open("/home/peko/source/buildroot/output/host/usr/lib/pkgconfig/blah-uninstalled.pc", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/peko/source/buildroot/output/host/usr/lib/pkgconfig/blah.pc", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/peko/source/buildroot/output/host/usr/share/pkgconfig/blah-uninstalled.pc", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/peko/source/buildroot/output/host/usr/share/pkgconfig/blah.pc", O_RDONLY) = -1 ENOENT (No such file or directory)
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list