[PATCH 1/2] Makefile: evaluate LDFLAGS_BUILD_ID only once

2016-06-27 Thread Rabin Vincent
Evaluate LDFLAGS_BUILD_ID (which involves invoking the compiler) only once instead of over and over. This provides a 20% reduction in null build time with x86 allnoconfig on my machine: $ make -j8 && perf stat -r5 make -j8 Before: 1,086617617 seconds time elapsed ( +- 0,37% ) After:

[PATCH 1/2] Makefile: evaluate LDFLAGS_BUILD_ID only once

2016-06-27 Thread Rabin Vincent
Evaluate LDFLAGS_BUILD_ID (which involves invoking the compiler) only once instead of over and over. This provides a 20% reduction in null build time with x86 allnoconfig on my machine: $ make -j8 && perf stat -r5 make -j8 Before: 1,086617617 seconds time elapsed ( +- 0,37% ) After: