From 370c6cc5b796e8073ed8d5b04032b659e34b0673 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 24 May 2017 09:05:29 +0200 Subject: Makefile: Speed up evaluation of ld options Since "333ff7b1e4 Fix linking with new ld, based on u-boot" the build with multiple images became unreasonable slow. This is because the ld-option macro was evaluated once for each image. Fix this by exporting and using LDFLAGS_barebox from the main Makefile. Signed-off-by: Sascha Hauer --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3b8d73dab8..da65a1ab40 100644 --- a/Makefile +++ b/Makefile @@ -321,6 +321,7 @@ export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS export CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS export CFLAGS CFLAGS_KERNEL export AFLAGS AFLAGS_KERNEL +export LDFLAGS_barebox # Files to ignore in find ... statements -- cgit v1.2.3