From 765a60df241105c8b3a62b859f0799b5185e67e4 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Sun, 10 Jul 2011 21:12:27 +0000 Subject: [PATCH] Fix: Prevent system compiler version number to be added to the prefix. --- sit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sit b/sit index f14d1cb..cb6ff8c 100755 --- a/sit +++ b/sit @@ -86,8 +86,10 @@ case $PLATFORM in ;; esac -# reevaluate compiler version -COMPILER_VERSION=$(eval "$COMPILER_VERSION_CMD") +if [ ! -z "${COMPILER}" ] ; then + # reevaluate compiler version + COMPILER_VERSION=$(eval "$COMPILER_VERSION_CMD") +fi # make the compiler variables CC, CXX, FC and F77 available if [ ! -z "$COMPILER_OPTS" ] ; then export ${COMPILER_OPTS}