]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/build
Admin, service and corporation sesnsors added for SUMX
[stg.git] / projects / rlm_stg / build
index 815933340fc92e9c082abcb2a1ad295a49dcbd2b..6275bb17674692569ed6d1f7209ba2b795f6027f 100755 (executable)
@@ -24,7 +24,7 @@ else
     then
         DEFS="-DDEBUG"
         MAKEOPTS="-j1"
-        CXXFLAGS="$CXXFLAGS -g3 -W -Wall"
+        CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
     else
         MAKEOPTS="-j1"
     fi
@@ -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