]> git.stg.codes - stg.git/blobdiff - projects/convertor/build
Fix error with undefined CC and CXX
[stg.git] / projects / convertor / build
index 4108fbdd3327242836f2134a55f2c992a604817f..baf22adb3ddaab0cbe6f1c8c71b391d1c4d754fd 100755 (executable)
@@ -84,6 +84,16 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
     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 ]
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]