X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/555324cdb34701b2e0fd1d681218de85e5cc7f6d..d49162286e811faacd7d7f3277da61efdfb635db:/projects/sgconf/build diff --git a/projects/sgconf/build b/projects/sgconf/build index 9b827328..da81773a 100755 --- a/projects/sgconf/build +++ b/projects/sgconf/build @@ -19,14 +19,17 @@ OWNER=root if [ -z $1 ] then MAKEOPTS="-j1" + DEBUG="no" else if [ "$1" = "debug" ] then DEFS="-DDEBUG" MAKEOPTS="-j1" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall" + DEBUG="yes" else MAKEOPTS="-j1" + DEBUG="no" fi fi @@ -48,6 +51,7 @@ then 6) OS=bsd5;; 7) OS=bsd7;; 8) OS=bsd7;; + 9) OS=bsd7;; *) OS=unknown;; esac MAKE="gmake" @@ -74,7 +78,6 @@ if [ "$OS" = "linux" ] then DEFS="$DEFS -DLINUX" LIB_THREAD=-lpthread - SHELL="/bin/bash" else if [ "$OS" = "bsd" ] then @@ -88,7 +91,6 @@ else LIB_THREAD=-lc_r fi fi - SHELL="/usr/local/bin/bash" fi if [ -z "$CC" ] @@ -167,6 +169,7 @@ fi echo "OS=$OS" > $CONFFILE echo "STG_TIME=yes" >> $CONFFILE +echo "DEBUG=$DEBUG" >> $CONFFILE echo "DIR_BUILD=$BUILD_DIR" >> $CONFFILE echo "DIR_LIB=\$(DIR_BUILD)/../../lib" >> $CONFFILE echo "DIR_LIBSRC=\$(DIR_BUILD)/../../stglibs" >> $CONFFILE @@ -181,7 +184,6 @@ do done echo "" >> $CONFFILE echo "LIB_THREAD=$LIB_THREAD" >> $CONFFILE -echo "SHELL=$SHELL" >> $CONFFILE echo "CXXFLAGS=$CXXFLAGS" >> $CONFFILE echo "CFLAGS=$CFLAGS" >> $CONFFILE echo "LDFLAGS=$LDFLAGS" >> $CONFFILE