summaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2021-09-08 08:26:24 (GMT)
committerChris Packham <judge.packham@gmail.com>2021-09-08 08:26:30 (GMT)
commit15635997a1354ca2b76a19bfea6fdd1fbe8b1f03 (patch)
treec7e2469df2fd0c3c8529a2f5a132fbee7e7ddcf8 /scripts/build/cc/gcc.sh
parentbc4b8c790b8d9c1faa5041ca73b4fcdcc4a6b0f1 (diff)
parent5c5b4df6d33118b2df6cc4aea2564fccb9d53104 (diff)
Merge branch 'canadian-cross-build' of https://github.com/foss-for-synopsys-dwc-arc-processors/crosstool-ng
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r--scripts/build/cc/gcc.sh14
1 files changed, 1 insertions, 13 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 6cb5de1..b076be5 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -698,20 +698,8 @@ do_gcc_core_backend() {
libgcc_rule="libgcc.mvars"
core_targets=( gcc target-libgcc )
- # On bare metal and canadian build the host-compiler is used when
- # actually the build-system compiler is required. Choose the correct
- # compilers for canadian build and use the defaults on other
- # configurations.
- if [ "${CT_BARE_METAL},${CT_CANADIAN}" = "y,y" ]; then
- repair_cc="CC_FOR_BUILD=${CT_BUILD}-gcc \
- CXX_FOR_BUILD=${CT_BUILD}-g++ \
- GCC_FOR_TARGET=${CT_TARGET}-${CT_CC}"
- else
- repair_cc=""
- fi
+ CT_DoExecLog ALL make ${CT_JOBSFLAGS} -C gcc ${libgcc_rule}
- CT_DoExecLog ALL make ${CT_JOBSFLAGS} -C gcc ${libgcc_rule} \
- ${repair_cc}
sed -r -i -e 's@-lc@@g' gcc/${libgcc_rule}
else # build_libgcc
core_targets=( gcc )