]> ruderich.org/simon Gitweb - blhc/blhc.git/blob - t/logs/bad-cflags
First working version.
[blhc/blhc.git] / t / logs / bad-cflags
1 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c
2 gcc -g -O2 -fstack-protector -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c
3 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -c test-c.c
4 gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o -ltest
5
6 # Compiling and linking in one step must also check CFLAGS/CPPFLAGS.
7 gcc -Wl,-z,relro -o test test.c -ltest
8 gcc -shared -fPIC -Wl,-z,relro -o test.so test.c -ltest