diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-06-28 03:02:52 +1000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-10-28 00:40:33 +0100 |
commit | dd91c7f6d3538c0c86335dc256339f2330de5e0a (patch) | |
tree | 546ed82b9a25d5086038d0c2edf510f67844e121 /toolchain.inc | |
parent | 2c9d2cf75c6b12132f1f2c43ef9c01b51f741d26 (diff) |
build: Allow clang build linkage to use libcompiler-rt
Make use of '-print-librt-file-name' over '-print-libgcc-file-name'
to use Compiler-RT runtime glue over libgcc glue.
NOTE: *** Requires at least clang 3.6.x
Change-Id: I7f63284473d6067bf775409970c8dd98f5d5a8d5
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6144
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'toolchain.inc')
-rw-r--r-- | toolchain.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/toolchain.inc b/toolchain.inc index 2a68576a85..a572f98d4e 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -93,6 +93,7 @@ READELF_$(1) := $(READELF_$(2)) CFLAGS_$(1) += $$(CFLAGS_common) $$(CFLAGS_$(2)) CPPFLAGS_$(1) += $$(CPPFLAGS_common) $$(CPPFLAGS_$(2)) LIBGCC_FILE_NAME_$(1) = $(wildcard $(shell $(CC_$(2)) $(CFLAGS_$(2)) -print-libgcc-file-name)) +LIBCLANG_RT_FILE_NAME_$(1) = $(shell $(CC_$(2)) $(CFLAGS_$(2)) -print-librt-file-name) endef # define_class: Allows defining any program as dynamic class and compiler tool |