summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDouglas Raillard <douglas.raillard@arm.com>2017-06-22 14:44:48 +0100
committerDouglas Raillard <douglas.raillard@arm.com>2017-06-28 15:03:05 +0100
commitc2b8806fb6e4f225bfb73b5378a31a9b96b0bd60 (patch)
tree82c306c03623c2d2cce966d48d1314e4bfbadf1e /Makefile
parent6bf362496933a7795273d8cac1bbdd2966dfab33 (diff)
Introduce TF_LDFLAGS
Use TF_LDFLAGS from the Makefiles, and still append LDFLAGS as well to the compiler's invocation. This allows passing extra options from the make command line using LDFLAGS. Document new LDFLAGS Makefile option. Change-Id: I88c5ac26ca12ac2b2d60a6f150ae027639991f27 Signed-off-by: Douglas Raillard <douglas.raillard@arm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 91f7c927..b9805c77 100644
--- a/Makefile
+++ b/Makefile
@@ -151,10 +151,9 @@ TF_CFLAGS += $(CPPFLAGS) $(TF_CFLAGS_$(ARCH)) \
-ffreestanding -fno-builtin -Wall -std=gnu99 \
-Os -ffunction-sections -fdata-sections
-LDFLAGS += $(LDFLAGS_$(ARCH))
-LDFLAGS += --fatal-warnings -O1
-LDFLAGS += --gc-sections
-
+TF_LDFLAGS += --fatal-warnings -O1
+TF_LDFLAGS += --gc-sections
+TF_LDFLAGS += $(TF_LDFLAGS_$(ARCH))
################################################################################
# Common sources and include directories