From: Stefano Lattarini Date: Wed, 27 Jun 2012 16:05:05 +0000 (+0200) Subject: [ng] perf: disable GNU make builtin rules, for performance reasons X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5621ff7b5ac49b19ac91c0dd1fac2e895abdaaba;p=thirdparty%2Fautomake.git [ng] perf: disable GNU make builtin rules, for performance reasons * lib/am/header-vars (MAKEFLAGS): Append '--no-builtin-rules'. This enhance performance by removing GNU make builtin rules that would be rather irrelevant (e.g., rules to automatically check out files from from RCS or SCCS repositories), or overridden by Automake (e.g., rules to compile C or C++ files). With this simple tweak, the null-build time on GNU coreutils on an aging Debian system goes down from ~ 20 seconds to ~ 9 seconds. Signed-off-by: Stefano Lattarini --- diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am index eccfec58c..75e5a3a88 100644 --- a/lib/am/header-vars.am +++ b/lib/am/header-vars.am @@ -16,6 +16,13 @@ VPATH = @srcdir@ +## Enhance performance by removing GNU make builtin rules that would be +## rather irrelevant (e.g., rules to automatically check out files from +## from RCS or SCCS repositories), or overridden by Automake (e.g., rules +## to compile C or C++ files). For larger packages (like GNU coreutils), +## this can greatly speed up null or almost-null builds, up to even 50%! +MAKEFLAGS += --no-builtin-rules + ## Declare an error, without immediately terminating the execution (proper ## code will take care later of that). This will allow us to diagnose more ## issues at once, rather than stopping at the first one.