summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-06-28 03:02:52 +1000
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-10-28 00:40:33 +0100
commitdd91c7f6d3538c0c86335dc256339f2330de5e0a (patch)
tree546ed82b9a25d5086038d0c2edf510f67844e121 /Makefile
parent2c9d2cf75c6b12132f1f2c43ef9c01b51f741d26 (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 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 49fbba5e5f..42aaabd363 100644
--- a/Makefile
+++ b/Makefile
@@ -117,8 +117,10 @@ else
include $(HAVE_DOTCONFIG)
ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
-# FIXME: arm/aarch64 won't build right now
-CFLAGS_x86_32 = -no-integrated-as -Qunused-arguments -target i386-elf -m32
+# FIXME: armv7/aarch64 won't build right now
+# NOTE: clang puts compiler-rt under lib/linux/libclang_rt.builtins-i386.a
+# this means the triple is i386-linux-elf instead of i386-none-elf
+CFLAGS_x86_32 = -no-integrated-as -Qunused-arguments -target i386-linux-elf -m32
CC_x86_32:=clang
ifneq ($(CONFIG_MMX),y)