summaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r--scripts/build/cc/gcc.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 897434a..c7e1712 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -228,6 +228,10 @@ do_cc_core() {
CT_DoLog EXTRA "Installing ${mode} core C compiler"
CT_DoExecLog ALL make ${install_rules}
+ # Create a symlink ${CT_TARGET}-cc to ${CT_TARGET}-gcc to always be able
+ # to call the C compiler with the same, somewhat canonical name.
+ CT_DoExecLog ALL ln -sv "${CT_TARGET}"-gcc "${core_prefix_dir}/bin/${CT_TARGET}"-cc
+
CT_EndStep
}