X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ceffe6cd00a822d29681a0d35d98fc8fb83aa73b..5f2937099a707ddb360954f5c10fe79cfa906110:/projects/rlm_stg/build?ds=sidebyside diff --git a/projects/rlm_stg/build b/projects/rlm_stg/build index 81593334..6275bb17 100755 --- a/projects/rlm_stg/build +++ b/projects/rlm_stg/build @@ -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