diff options
-rwxr-xr-x | util/crossgcc/buildgcc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index e0b4ed40eb..367f4d19ee 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -480,6 +480,13 @@ build_LLVM() { cp -a ../$CFE_DIR/tools/scan-build/* $DESTDIR$TARGETDIR/bin cp -a ../$CFE_DIR/tools/scan-view/* $DESTDIR$TARGETDIR/bin + + # create symlinks to work around broken --print-librt-file-name + # when used with -target. + cd $DESTDIR$TARGETDIR/lib/clang/${CLANG_VERSION}/lib + for i in */libclang_rt.builtins*.a; do + ln -s $i . + done } printf "${blue}Welcome to the ${red}coreboot${blue} cross toolchain builder v$CROSSGCC_VERSION ($CROSSGCC_DATE)${NC}\n\n" |