[coreboot-gerrit] Change in coreboot[master]: xcompile: Step closer to clang && !gcc builds

Damien Zammit (Code Review) gerrit at coreboot.org
Sun Sep 3 02:41:23 CEST 2017


Damien Zammit has uploaded this change for review. ( https://review.coreboot.org/21354


Change subject: xcompile: Step closer to clang && !gcc builds
......................................................................

xcompile: Step closer to clang && !gcc builds

Fix the following error from clang invoking gcc linker with wrong arg:

i386-elf-gcc: error: unrecognized command line option '--rtlib=libgcc';
did you mean '-static-libgcc'?
clang-4.0: error: linker (via gcc) command failed with exit code 1

Just remove --rtlib switch from CFLAGS relating to clang

Change-Id: Ife7ef6b6b47a04598fc67b40751bc59eed93b4af
Signed-off-by: Damien Zammit <damien at zamaudio.com>
---
M util/xcompile/xcompile
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/21354/1

diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 408ca71..6062cff 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -446,7 +446,7 @@
 		# but that's more of a clang limitation. Let's be optimistic
 		# that this will change in the future.
 		CLANG="${clang_prefix}clang"
-		CFLAGS_CLANG="-target ${clang_arch}-${TABI} --rtlib=${CLANG_RUNTIME} $CFLAGS_CLANG -ccc-gcc-name ${GCC}"
+		CFLAGS_CLANG="-target ${clang_arch}-${TABI} $CFLAGS_CLANG -ccc-gcc-name ${GCC}"
 	fi
 }
 

-- 
To view, visit https://review.coreboot.org/21354
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife7ef6b6b47a04598fc67b40751bc59eed93b4af
Gerrit-Change-Number: 21354
Gerrit-PatchSet: 1
Gerrit-Owner: Damien Zammit <damien at zamaudio.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170903/1f22a40e/attachment.html>


More information about the coreboot-gerrit mailing list