X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=t%2Flogs%2Fdebug-build;h=20b495e6ef551d3dbbe241d69563ca36366248bb;hp=a5638d07bcbafc6c830302f8cf63e6cf5407efcb;hb=ac2b8ce3fb580510632eba88382555b22165e059;hpb=768e3101e9e4e22e0d775ca1191549d825b679d3 diff --git a/t/logs/debug-build b/t/logs/debug-build index a5638d0..20b495e 100644 --- a/t/logs/debug-build +++ b/t/logs/debug-build @@ -6,6 +6,14 @@ gcc -g -O0 -fstack-protector-strong -Wformat -Wformat-security -Werror=format-se gcc -g -O0 -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-d.c gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o -ltest +# -D_FORTIFY_SOURCE=2 requires -O2 to work, therfore ignore it for debug +# lines. +gcc -g -O0 -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security -c test-a.c +gcc -g -O0 -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security -c test-b.c +gcc -g -O0 -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security -c test-c.c +gcc -g -O0 -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security -c test-d.c +gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o -ltest + gcc -g -Og -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c gcc -g -Og -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c gcc -g -Og -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-c.c