[Buildroot] [git commit master] Makefile: make GNU_HOST_NAME a simply expanded variable (:=)

Peter Korsgaard jacmet at sunsite.dk
Thu May 6 18:56:25 UTC 2010


commit: http://git.buildroot.net/buildroot/commit/?id=c71816a8a5a9a89f6436925e67e6bce742ee303b
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

GNU_HOST_NAME is referred more than 100 times in the tree, used 5
times during startup, and is relatively expensive to run - so make
it a simple expanded variable (:=) rather than recursively expanded
one (=).

Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 5da21d8..a4bf4b5 100644
--- a/Makefile
+++ b/Makefile
@@ -153,7 +153,7 @@ cc-option=$(shell if $(TARGET_CC) $(TARGET_CFLAGS) $(1) -S -o /dev/null -xc /dev
 unexport CROSS_COMPILE
 unexport ARCH
 
-GNU_HOST_NAME=$(shell package/gnuconfig/config.guess)
+GNU_HOST_NAME:=$(shell package/gnuconfig/config.guess)
 
 #############################################################
 #
-- 
1.6.3.3




More information about the buildroot mailing list