X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=contrib%2Fplatformtest.sh;h=6449a67cdbb5dd6da1342cda88f5a88a828ce910;hp=85d3a1d7ebb32e95fa8cf49c8d1139a787f1fb7b;hb=10c7a156876f75ab5e21385d2775143dceefe2e9;hpb=05748aa5eeaf75438a0bb238967667605fe4d52e diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh index 85d3a1d7..6449a67c 100755 --- a/contrib/platformtest.sh +++ b/contrib/platformtest.sh @@ -96,8 +96,8 @@ if [ -r "Makefile" ]; then CC=$(grep "^CC = " Makefile | cut -d' ' -f3) $CC --version 2>&1 | grep -i "GCC" >/dev/null if [ $? -eq 0 ]; then - COMPILER=$($CC --version | head -1 | awk "{ print \$3 }" \ - | cut -d'-' -f1) + COMPILER=$($CC --version | head -1 \ + | cut -d')' -f2 | cut -d' ' -f2) COMPILER="gcc $COMPILER" else case "$CC" in