]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/build
Setup CFLAGS as a copy of CXXFLAGS
[stg.git] / projects / rlm_stg / build
index 815933340fc92e9c082abcb2a1ad295a49dcbd2b..f875736a2c78da476f37b6302e5bcb0e83ae9e87 100755 (executable)
@@ -89,6 +89,16 @@ else
     CXXFLAGS="$CXXFLAGS -DHAVE_CLOSEFROM"
 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 ]
@@ -146,6 +156,7 @@ do
 done
 echo "" >> $CONFFILE
 echo "CXXFLAGS=$CXXFLAGS" >> $CONFFILE
+echo "CFLAGS=$CXXFLAGS" >> $CONFFILE
 echo "LDFLAGS=$LDFLAGS" >> $CONFFILE
 echo "LIB_THREAD=$LIB_THREAD" >> $CONFFILE
 echo "PREFIX=$PREFIX" >> $CONFFILE