]> git.stg.codes - stg.git/blobdiff - projects/rscriptd/build
Fix error with undefined CC and CXX
[stg.git] / projects / rscriptd / build
index 88fcef0b90fd38901f5372ee91d77dc1063fe236..38ec5fc1388c6a7d2db4e1e55e20e74f96db5239 100755 (executable)
@@ -94,6 +94,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 ]