From 88e4d68ddef75c37fde403fbafed57f031cef252 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 1 May 2011 12:18:39 +0200 Subject: Build system: set PKG_CONFIG_PATH for menuconfig and xconfig This avoids use of PKG_CONFIG_PATH set for target. Signed-off-by: Abdoulaye Walsimou Gaye --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 21ab6ed..68bea60 100644 --- a/Makefile +++ b/Makefile @@ -80,23 +80,30 @@ All: $(EMBTK_BUILD) xconfig: basic ifeq ($(CONFIG_EMBTK_DOTCONFIG),y) - $(Q)make -f scripts/Makefile.build obj=scripts/kconfig xconfig + $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \ + make -f scripts/Makefile.build obj=scripts/kconfig xconfig else @if [ -e $(EMBTK_ROOT)/.config.old ]; then \ cp $(EMBTK_ROOT)/.config.old $(EMBTK_ROOT)/.config; \ + PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \ make -f scripts/Makefile.build obj=scripts/kconfig xconfig; \ else \ + PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \ make -f scripts/Makefile.build obj=scripts/kconfig xconfig; \ fi endif menuconfig: basic - $(Q)make -f scripts/Makefile.build obj=scripts/kconfig menuconfig + $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \ + make -f scripts/Makefile.build obj=scripts/kconfig menuconfig + randconfig: basic - $(Q)make -f scripts/Makefile.build obj=scripts/kconfig randconfig + $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \ + make -f scripts/Makefile.build obj=scripts/kconfig randconfig basic: - $(Q)make -f scripts/Makefile.build obj=scripts/basic + $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \ + make -f scripts/Makefile.build obj=scripts/basic clean: rmallpath $(Q)make -f scripts/Makefile.clean obj=scripts/kconfig -- cgit v1.2.3