<p>Damien Zammit has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21354">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">xcompile: Step closer to clang && !gcc builds<br><br>Fix the following error from clang invoking gcc linker with wrong arg:<br><br>i386-elf-gcc: error: unrecognized command line option '--rtlib=libgcc';<br>did you mean '-static-libgcc'?<br>clang-4.0: error: linker (via gcc) command failed with exit code 1<br><br>Just remove --rtlib switch from CFLAGS relating to clang<br><br>Change-Id: Ife7ef6b6b47a04598fc67b40751bc59eed93b4af<br>Signed-off-by: Damien Zammit <damien@zamaudio.com><br>---<br>M util/xcompile/xcompile<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/21354/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile<br>index 408ca71..6062cff 100755<br>--- a/util/xcompile/xcompile<br>+++ b/util/xcompile/xcompile<br>@@ -446,7 +446,7 @@<br>           # but that's more of a clang limitation. Let's be optimistic<br>          # that this will change in the future.<br>                CLANG="${clang_prefix}clang"<br>-               CFLAGS_CLANG="-target ${clang_arch}-${TABI} --rtlib=${CLANG_RUNTIME} $CFLAGS_CLANG -ccc-gcc-name ${GCC}"<br>+           CFLAGS_CLANG="-target ${clang_arch}-${TABI} $CFLAGS_CLANG -ccc-gcc-name ${GCC}"<br>     fi<br> }<br> <br></pre><p>To view, visit <a href="https://review.coreboot.org/21354">change 21354</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/21354"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ife7ef6b6b47a04598fc67b40751bc59eed93b4af </div>
<div style="display:none"> Gerrit-Change-Number: 21354 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Damien Zammit <damien@zamaudio.com> </div>