]> git.stg.codes - stg.git/blobdiff - projects/convertor/build
Setup CFLAGS as a copy of CXXFLAGS
[stg.git] / projects / convertor / build
index 4108fbdd3327242836f2134a55f2c992a604817f..0a8217404cf92b52ff747b0ce7eb9059260f74be 100755 (executable)
@@ -84,6 +84,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 ]
@@ -265,6 +275,7 @@ done
 echo "" >> $CONFFILE
 echo "SHELL=$SHELL" >> $CONFFILE
 echo "CXXFLAGS=$CXXFLAGS" >> $CONFFILE
+echo "CFLAGS=$CXXFLAGS" >> $CONFFILE
 echo "LDFLAGS=$LDFLAGS" >> $CONFFILE
 echo "LIB_THREAD=$LIB_THREAD" >> $CONFFILE
 echo "PREFIX=$PREFIX" >> $CONFFILE