arm-trusted-firmware/make_helpers
Chris Kay 2f1c5e7eb1 build: use GCC to link by default
When configuring GNU GCC as the C compiler, we usually use the GNU BFD
linker directly to link by default. However, this complicates things
because we also need to support LTO, which can only be done when linking
is done via the C compiler, and we cannot change the linker later on if
some other part of the build system wants to enable LTO.

This change migrates the default choice of linker to GCC if the C
compiler is GCC, in order to enable this use-case. This should have no
impact on anything outside of the build system, as by default GCC merely
acts as a wrapper around BFD.

Change-Id: I40771be2b0571def67bbfde9e877e7629ec8cdaa
Signed-off-by: Chris Kay <chris.kay@arm.com>
2024-04-02 09:52:17 +00:00
..
tbbr fix(tbbr): unrecognised 'tos-fw-key-cert' option 2023-09-07 11:14:52 +01:00
toolchains build: use GCC to link by default 2024-04-02 09:52:17 +00:00
arch_features.mk refactor(mte): remove mte, mte_perm 2024-03-26 14:30:58 -05:00
armv7-a-cpus.mk refactor(build): merge march32/64 directives 2023-06-22 16:37:03 -05:00
build_env.mk build: refactor toolchain detection 2024-02-06 11:14:52 +00:00
build_macros.mk build: use toolchain identifiers in conditions 2024-02-06 11:14:52 +00:00
cygwin.mk Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
defaults.mk feat(tc): add DPE backend to the measured boot framework 2024-03-06 16:55:08 +01:00
march.mk build: use toolchain identifiers in conditions 2024-02-06 11:14:52 +00:00
msys.mk Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
plat_helpers.mk Change PLATFORM_ROOT to TF_PLATFORM_ROOT 2018-03-05 14:18:04 +08:00
toolchain.mk build: use GCC to link by default 2024-04-02 09:52:17 +00:00
unix.mk build: refactor toolchain detection 2024-02-06 11:14:52 +00:00
windows.mk build: use new toolchain variables for tools 2024-02-06 11:14:52 +00:00