summaryrefslogtreecommitdiff
path: root/util/xcompile
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2017-09-02 18:28:29 +1000
committerPatrick Georgi <pgeorgi@google.com>2019-05-29 20:33:35 +0000
commit9b5e8c171868f3c559eb0f51a5b6f20cf5d0b7f9 (patch)
tree9f91bc5f9461056f5a4f2464bfc4f1664dc7cd0a /util/xcompile
parenta95a6bf646aee936d841f458812f2ced3a29e6f7 (diff)
xcompile: Remove --rtlib switch from clang CFLAGS
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@zamaudio.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/21354 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/xcompile')
-rwxr-xr-xutil/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 40356d93d9..7ab1cb7af8 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -453,7 +453,7 @@ test_architecture() {
# 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
}