From 0caa251da2d7272fdecb32aae6e0a9e1c3ec0756 Mon Sep 17 00:00:00 2001 From: Mateusz MikuĊ‚a Date: Fri, 10 May 2019 16:12:32 +0200 Subject: Conditionally provide cc in musl-toolchain.sh --- src/ci/docker/scripts/musl-toolchain.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/ci/docker/scripts') diff --git a/src/ci/docker/scripts/musl-toolchain.sh b/src/ci/docker/scripts/musl-toolchain.sh index e132615738b..d5988a25671 100644 --- a/src/ci/docker/scripts/musl-toolchain.sh +++ b/src/ci/docker/scripts/musl-toolchain.sh @@ -46,12 +46,14 @@ ln -s $OUTPUT/$TARGET/lib/libc.so /lib/ld-musl-$ARCH.so.1 echo $OUTPUT/$TARGET/lib >> /etc/ld-musl-$ARCH.path # Now when musl bootstraps itself create proper toolchain symlinks to make build and tests easier -for exec in cc gcc; do - ln -s $TARGET-gcc /usr/local/bin/$exec -done -for exec in cpp c++ g++; do - ln -s $TARGET-g++ /usr/local/bin/$exec -done +if [ "$REPLACE_CC" = "1" ]; then + for exec in cc gcc; do + ln -s $TARGET-gcc /usr/local/bin/$exec + done + for exec in cpp c++ g++; do + ln -s $TARGET-g++ /usr/local/bin/$exec + done +fi export CC=$TARGET-gcc export CXX=$TARGET-g++ -- cgit 1.4.1-3-g733a5