From: Romain Naour Date: Mon, 6 Feb 2017 19:39:00 +0100 Subject: [Buildroot] [PATCH] Don't disable dependency tracking if using _OVERRIDE_SRCDIR. In-Reply-To: <20170201135310.3ghqvpqww25jfzm2@zenon.in.qult.net> References: <20170201135310.3ghqvpqww25jfzm2@zenon.in.qult.net> Message-ID: <2a135f21-ffe1-06b8-37d3-e78f7a51798f@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Ignacy, Le 01/02/2017 ? 14:53, Ignacy Gaw?dzki a ?crit : > 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 | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk > index f7b8488..e8579f4 100644 > --- a/package/pkg-autotools.mk > +++ b/package/pkg-autotools.mk > @@ -199,7 +199,8 @@ 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 +233,8 @@ define $(2)_CONFIGURE_CMDS > --disable-debug \ > --with-xmlto=no \ > --with-fop=no \ > - --disable-dependency-tracking \ > + $$(if $$($$(PKG)_OVERRIDE_SRCDIR),, \ > + --disable-dependency-tracking) \ You're likely working on the target variant, so probably you can let the dependency tracking enabled for the host? Best regards, Romain > $$(QUIET) $$($$(PKG)_CONF_OPTS) \ > ) > endef >