From 6d3873ba4b91337fede90b317ac2dcc9c476d110 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 26 Jun 2011 01:44:58 +0200 Subject: Build system: fix PKG_CONFIG_PATH for target and host Signed-off-by: Abdoulaye Walsimou Gaye --- Makefile | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ad6e83c..d51548e 100644 --- a/Makefile +++ b/Makefile @@ -81,34 +81,28 @@ All: $(EMBTK_BUILD) xconfig: basic ifeq ($(CONFIG_EMBTK_DOTCONFIG),y) - $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \ - make -f scripts/Makefile.build obj=scripts/kconfig xconfig + $(Q)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; \ + $(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; \ + $(MAKE) -f scripts/Makefile.build obj=scripts/kconfig xconfig; \ fi endif menuconfig: basic - $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \ - make -f scripts/Makefile.build obj=scripts/kconfig menuconfig + $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig menuconfig randconfig: basic - $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \ - make -f scripts/Makefile.build obj=scripts/kconfig randconfig + $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig randconfig basic: - $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \ - make -f scripts/Makefile.build obj=scripts/basic + $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/basic clean: rmallpath - $(Q)make -f scripts/Makefile.clean obj=scripts/kconfig - $(Q)make -f scripts/Makefile.clean obj=scripts/basic + $(Q)$(MAKE) -f scripts/Makefile.clean obj=scripts/kconfig + $(Q)$(MAKE) -f scripts/Makefile.clean obj=scripts/basic $(Q)rm -rf .config kbuild.log .fakeroot* startbuild: -- cgit v1.2.3