diff options
author | Brian Norris <briannorris@chromium.org> | 2020-07-06 11:47:37 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-10 20:39:08 +0000 |
commit | 0ae1e58736b59189cc336f41510e7a2a91489465 (patch) | |
tree | 48799b0530a1da6e62e806a912c7af88205fa80d /Makefile | |
parent | d46f93ed581a9e3ddc9ab9cdb47a0f2917a7f422 (diff) | |
download | vboot-0ae1e58736b59189cc336f41510e7a2a91489465.tar.gz |
Makefile: always include --gc-sections
We appear to intend to supply --gc-sections all the time, but the
calling environment may provide its own LDFLAGS which will override
this.
BUG=none
TEST=build for both SDK and target; watch (with V=1) that --gc-sections
is really supplied
Signed-off-by: Brian Norris <briannorris@chromium.org>
Change-Id: Icdcdc3e730e3898b6058f2e3e750a7cdda87e74b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2283843
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -154,7 +154,7 @@ CFLAGS += -DCHROMEOS_ENVIRONMENT ${COMMON_FLAGS} endif # Needs -Wl because LD is actually set to CC by default. -LDFLAGS ?= -Wl,--gc-sections +LDFLAGS += -Wl,--gc-sections ifneq (${DEBUG},) CFLAGS += -DVBOOT_DEBUG |