]> git.stg.codes - stg.git/blobdiff - projects/sgconf/build
Fix error with undefined CC and CXX
[stg.git] / projects / sgconf / build
index c0cb49b62cf2a442cb1c71f24693441e3ab358d2..44f6e617c944dd7d10cc7303769a83a681955a1d 100755 (executable)
@@ -91,6 +91,16 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
+if [ -z "$CC" ]
+then
+    CC=gcc
+fi
+
+if [ -z "$CXX" ]
+then
+    CXX=g++
+fi
+
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]