]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/logs/bad-cppflags
Detect compile type (preprocess, compile, link) correctly.
[blhc/blhc.git] / t / logs / bad-cppflags
index 48e7f5a807699fbdf779706177e95dba7eb97945..a4d83b1195815c92fc1ad8e1085364d9d6c005ae 100644 (file)
@@ -4,3 +4,7 @@ gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-securit
 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-b.c
 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-c.c
 gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o -ltest
+
+gcc -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c ../../../../src/test/test.c -o test.so.o
+
+g++ -o test -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security test-a.cxx test-b.o test-c.o -Wl,-z,relro