From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Mon, 06 Oct 2014 21:47:17 +0200 Subject: [Buildroot] [PATCH 1/3] host-pkgconf: install pkg-config-native In-Reply-To: <1411489271-26899-2-git-send-email-eric.le.bihan.dev@free.fr> (Eric Le Bihan's message of "Tue, 23 Sep 2014 18:21:09 +0200") References: <1411489271-26899-1-git-send-email-eric.le.bihan.dev@free.fr> <1411489271-26899-2-git-send-email-eric.le.bihan.dev@free.fr> Message-ID: <87r3ylhtfe.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Eric" == Eric Le Bihan 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 > --- > 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