From 630c335868dac137157e4821d465f61323baba22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ignacy=20Gaw=C4=99dzki?= Date: Wed, 1 Feb 2017 14:53:10 +0100 Subject: [PATCH] pkg-autotools: don't disable dependency tracking if using _OVERRIDE_SRCDIR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Include the --disable-dependency-tracking option in _CONFIGURE_CMDS only on the condition that _OVERRIDE_SRCDIR is empty. Dependency tracking is very welcome while developing in order to properly rebuild when calling make -rebuild for instance. Signed-off-by: Ignacy Gawędzki --- package/pkg-autotools.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk index f7b848888b..e215382d06 100644 --- a/package/pkg-autotools.mk +++ b/package/pkg-autotools.mk @@ -199,7 +199,7 @@ define $(2)_CONFIGURE_CMDS --disable-documentation \ --with-xmlto=no \ --with-fop=no \ - --disable-dependency-tracking \ + $$(if $$($$(PKG)_OVERRIDE_SRCDIR),,--disable-dependency-tracking) \ --enable-ipv6 \ $$(DISABLE_NLS) \ $$(SHARED_STATIC_LIBS_OPTS) \ @@ -232,7 +232,7 @@ define $(2)_CONFIGURE_CMDS --disable-debug \ --with-xmlto=no \ --with-fop=no \ - --disable-dependency-tracking \ + $$(if $$($$(PKG)_OVERRIDE_SRCDIR),,--disable-dependency-tracking) \ $$(QUIET) $$($$(PKG)_CONF_OPTS) \ ) endef