diff options
author | Soby Mathew <soby.mathew@arm.com> | 2023-05-05 10:51:57 +0100 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2023-05-05 12:04:56 +0100 |
commit | 25d9e2f292fa3a44755a86094ca13c22a11974cd (patch) | |
tree | 1ef6908499a8986f053c4423135f525b77fd93d9 /Makefile | |
parent | cd657794037cdba777541fa1bc391ffd01384c69 (diff) |
fix(build): resolve build issue for older toolchains
The patch ce37277 introduced support for new toolchain but
the LD option supplied is not recognized by older toolchains.
This patch fixes the problem by ensuring that the LD option
is supported before being added to LDFLAGS.
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Change-Id: I97dbd096c5ade7df92e3217a6b218c2258ac001e
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -229,10 +229,6 @@ COMMON_CFLAGS += ${CFLAGS} ${INCLUDES} COMMON_LDFLAGS += --fatal-warnings -O1 --gc-sections --build-id=none -# With ld.bfd version 2.39 and newer new warnings are added. Skip those since we -# are not loaded by a elf loader. -COMMON_LDFLAGS += --no-warn-rwx-segments - CC := ${CROSS_COMPILE}gcc CPP := ${CROSS_COMPILE}cpp AS := ${CROSS_COMPILE}gcc @@ -243,6 +239,10 @@ OD := ${CROSS_COMPILE}objdump NM := ${CROSS_COMPILE}nm PP := ${CROSS_COMPILE}gcc +# With ld.bfd version 2.39 and newer new warnings are added. Skip those since we +# are not loaded by a elf loader. +COMMON_LDFLAGS += $(call ld_option, --no-warn-rwx-segments) + ################################################################################ TFTF_SOURCES := ${FRAMEWORK_SOURCES} ${TESTS_SOURCES} ${PLAT_SOURCES} ${LIBC_SRCS} ${LIBFDT_SRCS} |