]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/logs/cc
check for -fstack-protector-strong
[blhc/blhc.git] / t / logs / cc
index ddacd82691677a89ec5f8b6a9c33a616bf7eb3de..e1da90052a241d37dde85a2f39601f867dc2f9b8 100644 (file)
--- a/t/logs/cc
+++ b/t/logs/cc
@@ -1,4 +1,17 @@
-cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c
-cc -g -O2 -fstack-protector -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c
-cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -c test-c.c
+dpkg-buildpackage: source package test
+
+cc -g -O2 -fstack-protector-strong -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.cc
+cc -g -O2 -fstack-protector-strong -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c
+cc -g -O2 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c
+cc -g -O2 -fstack-protector-strong -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -c test-c.c
 cc -Wl,-z,defs -o test test-a.o test-b.o test-c.o -ltest
+
+rm cc-test.h
+cc\
+    test.cc
+cc\
+test.cc
+
+rm test.cc
+
+cc -Wl,-z,defs test-a.o test-b.o test-c.o -ltest -Wl,-z,relro -o test/test-4.2~_4711/test.so test.o