From b1d2923efeb89a7a3e6321d459f0582993fdb470 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 25 Mar 2014 21:21:27 +0200 Subject: [PATCH] Pass debug flags to CFLAGS. --- projects/rscriptd/build | 2 ++ projects/sgauth/build | 4 +++- projects/sgauthstress/build | 4 +++- projects/sgconf/build | 2 ++ projects/sgconf_xml/build | 2 ++ projects/sgconv/build | 2 ++ projects/stargazer/build | 2 ++ 7 files changed, 16 insertions(+), 2 deletions(-) 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" -- 2.44.2