commit ef48171750354109456511fe13902a1fa15bd15c
parent ace12cd8b0d0f47d68207ad86d9cf93170c26493
Author: Remy Noulin <loader2x@gmail.com>
Date: Tue, 5 Nov 2019 16:29:42 +0100
use -g3 to get the defines as debug symbols in package.yml template
src/common.h | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
Diffstat:
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/common.h b/src/common.h
@@ -42,13 +42,13 @@
" #cflagsAlways: # these flags will always be present, independent of package.yml\n"\
" # The test* are the options for building the test (sheepy -t, testBin in package.yml)\n"\
" # gcov is enabled and the unit tests are done with check (apt-get install check, #include <check>)\n"\
- " testCflags: -ggdb -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra # these flags are overriden by package.yml\n"\
+ " testCflags: -g3 -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra # these flags are overriden by package.yml\n"\
" testLflags: -lcheck_pic -lrt -lm -lsubunit -fprofile-arcs -ftest-coverage -rdynamic # these flags are overriden by package.yml\n"\
" testLinkWithGold: true\n"\
" #testCflagsAlways: # these flags will always be present, independent of package.yml\n"\
" # The memcheck* are the options for building the memory leak tests (sheepy -m, memcheckBin in package.yml)\n"\
" memcheckCmd: valgrind --leak-check=full --show-leak-kinds=all\n"\
- " memcheckCflags: -ggdb -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
+ " memcheckCflags: -g3 -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
" memcheckLflags: -rdynamic # these flags are overriden by package.yml\n"\
" memcheckLinkWithGold: true\n"\
" key: uninitialized"
@@ -58,7 +58,7 @@
" print_compile_commands: false\n"\
" clean_exe: true # when true sheepy -d deletes the executable or libraries\n"\
" system: /usr/local # spm -g install the packages in this folder under shpPackages and bin\n"\
- " cflags: -ggdb -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
+ " cflags: -g3 -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
" lflags: -rdynamic # these flags are overriden by package.yml\n"\
" linkWithGold: false\n"\
" 32bit: false\n"\
@@ -67,13 +67,13 @@
" #cflagsAlways: # these flags will always be present, independent of package.yml\n"\
" # The test* are the options for building the test (sheepy -t, testBin in package.yml)\n"\
" # gcov is enabled and the unit tests are done with check (apt-get install check, #include <check>)\n"\
- " testCflags: -ggdb -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra # these flags are overriden by package.yml\n"\
+ " testCflags: -g3 -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra # these flags are overriden by package.yml\n"\
" testLflags: -lcheck_pic -lrt -lm -lsubunit -fprofile-arcs -ftest-coverage -rdynamic # these flags are overriden by package.yml\n"\
" testLinkWithGold: false\n"\
" #testCflagsAlways: # these flags will always be present, independent of package.yml\n"\
" # The memcheck* are the options for building the memory leak tests (sheepy -m, memcheckBin in package.yml)\n"\
" memcheckCmd: valgrind --leak-check=full --show-leak-kinds=all\n"\
- " memcheckCflags: -ggdb -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
+ " memcheckCflags: -g3 -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
" memcheckLflags: -rdynamic # these flags are overriden by package.yml\n"\
" memcheckLinkWithGold: false\n"\
" key: uninitialized"
@@ -83,7 +83,7 @@
" print_compile_commands: false\n"\
" clean_exe: true # when true sheepy -d deletes the executable or libraries\n"\
" system: /data/data/com.termux/files/usr # spm -g install the packages in this folder under shpPackages and bin\n"\
- " cflags: -D__arm__=1 -ggdb -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
+ " cflags: -D__arm__=1 -g3 -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
" lflags: -rdynamic # these flags are overriden by package.yml\n"\
" linkWithGold: false\n"\
" 32bit: false\n"\
@@ -92,13 +92,13 @@
" #cflagsAlways: # these flags will always be present, independent of package.yml\n"\
" # The test* are the options for building the test (sheepy -t, testBin in package.yml)\n"\
" # gcov is enabled and the unit tests are done with check (apt-get install check, #include <check>)\n"\
- " testCflags: -ggdb -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra # these flags are overriden by package.yml\n"\
+ " testCflags: -g3 -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra # these flags are overriden by package.yml\n"\
" testLflags: -lcheck_pic -lrt -lm -lsubunit -fprofile-arcs -ftest-coverage -rdynamic # these flags are overriden by package.yml\n"\
" testLinkWithGold: false\n"\
" #testCflagsAlways: # these flags will always be present, independent of package.yml\n"\
" # The memcheck* are the options for building the memory leak tests (sheepy -m, memcheckBin in package.yml)\n"\
" memcheckCmd: valgrind --leak-check=full --show-leak-kinds=all\n"\
- " memcheckCflags: -ggdb -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
+ " memcheckCflags: -g3 -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
" memcheckLflags: -rdynamic # these flags are overriden by package.yml\n"\
" memcheckLinkWithGold: false\n"\
" key: uninitialized"
@@ -108,7 +108,7 @@
" print_compile_commands: false\n"\
" clean_exe: true # when true sheepy -d deletes the executable or libraries\n"\
" system: /boot/home/config/non-packaged # spm -g install the packages in this folder under shpPackages and bin\n"\
- " cflags: -ggdb -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
+ " cflags: -g3 -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
" lflags: # these flags are overriden by package.yml\n"\
" linkWithGold: false\n"\
" 32bit: false\n"\
@@ -117,13 +117,13 @@
" #cflagsAlways: # these flags will always be present, independent of package.yml\n"\
" # The test* are the options for building the test (sheepy -t, testBin in package.yml)\n"\
" # gcov is enabled and the unit tests are done with check (apt-get install check, #include <check>)\n"\
- " testCflags: -ggdb -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra # these flags are overriden by package.yml\n"\
+ " testCflags: -g3 -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra # these flags are overriden by package.yml\n"\
" testLflags: -lcheck_pic -lrt -lm -lsubunit -fprofile-arcs -ftest-coverage -rdynamic # these flags are overriden by package.yml\n"\
" testLinkWithGold: false\n"\
" #testCflagsAlways: # these flags will always be present, independent of package.yml\n"\
" # The memcheck* are the options for building the memory leak tests (sheepy -m, memcheckBin in package.yml)\n"\
" memcheckCmd: valgrind --leak-check=full --show-leak-kinds=all\n"\
- " memcheckCflags: -ggdb -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
+ " memcheckCflags: -g3 -std=gnu11 -fPIC -pipe # these flags are overriden by package.yml\n"\
" memcheckLflags: -rdynamic # these flags are overriden by package.yml\n"\
" memcheckLinkWithGold: false\n"\
" key: uninitialized"
@@ -167,7 +167,7 @@ int main(int ARGC, char** ARGV) {\n\
version: 0.0.1\n\
description: \"explanation\"\n\
bin: ./<PKG_NAME>.c\n\
- #cflags: -DA -ggdb -std=gnu11 -fPIC -pipe\n\
+ #cflags: -DA -g3 -std=gnu11 -fPIC -pipe\n\
#lflags: -lpcre\n\
repository:\n\
type: git\n\
@@ -185,12 +185,12 @@ int main(int ARGC, char** ARGV) {\n\
# md4c: \n\
# Test configuration:\n\
#testBin: ./<TEST_NAME>.c\n\
- #testCflags: -ggdb -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra\n\
+ #testCflags: -g3 -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra\n\
#testLflags: -lcheck_pic -lrt -lm -lsubunit -fprofile-arcs -ftest-coverage -rdynamic\n\
# Memcheck configuration:\n\
#memcheckBin: ./<MEMCHECK_NAME>.c\n\
#memcheckCmd: valgrind --leak-check=full --show-leak-kinds=all\n\
- #memcheckCflags: -ggdb -std=gnu11 -fPIC -pipe\n\
+ #memcheckCflags: -g3 -std=gnu11 -fPIC -pipe\n\
#memcheckLflags: -rdynamic\n\
#documentationCmd: # command for generating the documentation with spm doc\n\
private: false # true for private package\