From: Maxim Mamontov Date: Tue, 25 Mar 2014 19:21:27 +0000 (+0200) Subject: Pass debug flags to CFLAGS. X-Git-Tag: 2.409~323 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/a2030122b69115407ef847e1d9f99beed5060397 Pass debug flags to CFLAGS. --- diff --git a/projects/rscriptd/build b/projects/rscriptd/build index c7aa090d..62681932 100755 --- a/projects/rscriptd/build +++ b/projects/rscriptd/build @@ -20,6 +20,7 @@ if [ "$1" = "debug" ] then DEFS="$DEFS -DDEBUG" MAKEOPTS="$MAKEOPTS -j1" + CFLAGS="$CFLAGS -ggdb3 -W -Wall -Wextra" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra" DEBUG="yes" else @@ -27,6 +28,7 @@ else DEBUG="no" fi +CFLAGS="$CFLAGS -I/usr/local/include" CXXFLAGS="$CXXFLAGS -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/lib" diff --git a/projects/sgauth/build b/projects/sgauth/build index 5ea022a2..203e0c88 100755 --- a/projects/sgauth/build +++ b/projects/sgauth/build @@ -20,6 +20,7 @@ if [ "$1" = "debug" ] then DEFS="$DEFS -DDEBUG" MAKEOPTS="$MAKEOPTS -j1" + CFLAGS="$CFLAGS -ggdb3 -W -Wall -Wextra" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra" DEBUG="yes" else @@ -27,8 +28,9 @@ else DEBUG="no" fi +CFLAGS="$CFLAGS -I/usr/local/include" CXXFLAGS="$CXXFLAGS -I/usr/local/include" -LDFLAGS="$CXXFLAGS -L/usr/local/lib" +LDFLAGS="$LDFLAGS -L/usr/local/lib" if [ "$sys" = "Linux" ] then diff --git a/projects/sgauthstress/build b/projects/sgauthstress/build index 2b145659..825f00b5 100755 --- a/projects/sgauthstress/build +++ b/projects/sgauthstress/build @@ -25,6 +25,7 @@ else then DEFS="-DDEBUG" MAKEOPTS="-j1" + CFLAGS="$CFLAGS -ggdb3 -W -Wall" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall" DEBUG="yes" else @@ -33,8 +34,9 @@ else fi fi +CFLAGS="$CFLAGS -I/usr/local/include" CXXFLAGS="$CXXFLAGS -I/usr/local/include" -LDFLAGS="$CXXFLAGS -L/usr/local/lib" +LDFLAGS="$LDFLAGS -L/usr/local/lib" if [ "$sys" = "Linux" ] then diff --git a/projects/sgconf/build b/projects/sgconf/build index d7b72363..62fceb23 100755 --- a/projects/sgconf/build +++ b/projects/sgconf/build @@ -20,6 +20,7 @@ if [ "$1" = "debug" ] then DEFS="$DEFS -DDEBUG" MAKEOPTS="$MAKEOPTS -j1" + CFLAGS="$CFLAGS -ggdb3 -W -Wall -Wextra" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra" DEBUG="yes" else @@ -27,6 +28,7 @@ else DEBUG="no" fi +CFLAGS="$CFLAGS -I/usr/local/include" CXXFLAGS="$CXXFLAGS -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/lib" diff --git a/projects/sgconf_xml/build b/projects/sgconf_xml/build index e9cfb40b..9314452b 100755 --- a/projects/sgconf_xml/build +++ b/projects/sgconf_xml/build @@ -20,6 +20,7 @@ if [ "$1" = "debug" ] then DEFS="$DEFS -DDEBUG" MAKEOPTS="$MAKEOPTS -j1" + CFLAGS="$CFLAGS -ggdb3 -W -Wall -Wextra" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra" DEBUG="yes" else @@ -27,6 +28,7 @@ else DEBUG="no" fi +CFLAGS="$CFLAGS -I/usr/local/include" CXXFLAGS="$CXXFLAGS -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/lib" diff --git a/projects/sgconv/build b/projects/sgconv/build index 7e430be2..580d515a 100755 --- a/projects/sgconv/build +++ b/projects/sgconv/build @@ -21,6 +21,7 @@ if [ "$1" = "debug" ] then DEFS="$DEFS -DDEBUG" MAKEOPTS="$MAKEOPTS -j1" + CFLAGS="$CFLAGS -ggdb3 -W -Wall -Wextra" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra" DEBUG="yes" else @@ -28,6 +29,7 @@ else DEBUG="no" fi +CFLAGS="$CFLAGS -ggdb3 -W -Wall -I/usr/local/include" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/lib" diff --git a/projects/stargazer/build b/projects/stargazer/build index 2061d538..d8ed3092 100755 --- a/projects/stargazer/build +++ b/projects/stargazer/build @@ -39,6 +39,7 @@ if [ "$1" = "debug" ] then DEFS="$DEFS -DDEBUG" MAKEOPTS="$MAKEOPTS -j1" + CFLAGS="$CFLAGS -ggdb3 -W -Wall" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall" DEBUG="yes" else @@ -46,6 +47,7 @@ else DEBUG="no" fi +CFLAGS="$CFLAGS -I/usr/local/include" CXXFLAGS="$CXXFLAGS -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/lib"