diff options
author | Reka Norman <rekanorman@google.com> | 2022-11-25 16:38:43 +1100 |
---|---|---|
committer | Eric Lai <eric_lai@quanta.corp-partner.google.com> | 2022-12-12 01:29:41 +0000 |
commit | 427ec78932b823ec6f1dd8d839ea32b964be8b5e (patch) | |
tree | 06cc50ac5ab698f40afbd7ab3614ab0f17ba5bc7 | |
parent | 1d49d3e40b1bc1dcd25e26781277f3fa6409551b (diff) |
util/ifdtool/Makefile.inc: Respect LDFLAGS from environment
The ChromeOS build system performs ASAN builds by appending
-fsanitize=address to CFLAGS and LDFLAGS. Currently, the ASAN build of
ifdtool fails with linker errors because the Makefile does not respect
LDFLAGS.
Modify the Makefile to respect LDFLAGS from the environment. This
is consistent with the Makefiles of most other coreboot utils.
BUG=b:255462682
TEST=`USE=asan emerge-nissa coreboot-utils` now succeeds with CL:4018976
Change-Id: I1a497562d4d979829edb47c4c4b3f2c64266324e
Signed-off-by: Reka Norman <rekanorman@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70054
Reviewed-by: Patrick Georgi <patrick@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | util/ifdtool/Makefile.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ifdtool/Makefile.inc b/util/ifdtool/Makefile.inc index eb3a700d43..2b97bf51c8 100644 --- a/util/ifdtool/Makefile.inc +++ b/util/ifdtool/Makefile.inc @@ -16,4 +16,4 @@ $(objutil)/ifdtool/%.o: $(top)/util/cbfstool/flashmap/%.c $(objutil)/ifdtool/ifdtool: $(addprefix $(objutil)/ifdtool/,$(ifdtoolobj)) printf " IFDTOOL\n" - $(HOSTCC) $(addprefix $(objutil)/ifdtool/,$(ifdtoolobj)) -o $@ + $(HOSTCC) ${LDFLAGS} $(addprefix $(objutil)/ifdtool/,$(ifdtoolobj)) -o $@ |