diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-05-24 09:05:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-05-24 09:07:03 +0200 |
commit | 370c6cc5b796e8073ed8d5b04032b659e34b0673 (patch) | |
tree | 7d3a2be6ee019e30b8112d7429350491b0e417ca /images | |
parent | f6ee281578930123987c1d92722316adda35b927 (diff) | |
download | barebox-370c6cc5b796e8073ed8d5b04032b659e34b0673.tar.gz barebox-370c6cc5b796e8073ed8d5b04032b659e34b0673.tar.xz |
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'images')
-rw-r--r-- | images/Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/images/Makefile b/images/Makefile index 3f48267bca..705c8ad03e 100644 --- a/images/Makefile +++ b/images/Makefile @@ -53,11 +53,8 @@ extra-y += $(pbl-lds) $(pbl-lds): $(obj)/../arch/$(ARCH)/lib/pbl.lds.S FORCE $(call if_changed_dep,cpp_lds_S) -# Avoid 'Not enough room for program headers' error on binutils 2.28 onwards. -LDFLAGS += $(call ld-option, --no-dynamic-linker) - quiet_cmd_elf__ ?= LD $@ - cmd_elf__ ?= $(LD) $(LDFLAGS) --gc-sections -pie \ + cmd_elf__ ?= $(LD) $(LDFLAGS_barebox) --gc-sections -pie \ -e $(2) -Map $@.map $(LDFLAGS_$(@F)) -o $@ \ -T $(pbl-lds) \ --start-group $(barebox-pbl-common) --end-group |