1 dpkg-buildpackage: source package test
3 # Command over multiple lines.
5 -g -O2 -fstack-protector\
6 --param=ssp-buffer-size=4 -Wformat-security\
7 -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c
8 gcc -g -O2 -fstack-protector -Wformat -Wformat-security -Werror=format-security\
11 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -c test-c.c
12 gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o\
15 test test-c.o test-a.o test-b.o\
18 test test-c.o test-b.o test-a.o\
21 test test-b.o test-a.o test-c.c\
24 # Multiple commands in a single line.
25 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-a.c; gcc -D_FORTIFY_SOURCE=2 -c test-b.c
26 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -D_FORTIFY_SOURCE=2 -c test-a.c ; gcc -Wformat-security -Werror=format-security -c test-b.c
27 gcc -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-a.c;\
28 gcc -O2 -D_FORTIFY_SOURCE=2 -c test-b.c
29 gcc -g -O2 --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-a.c ; \
30 gcc -D_FORTIFY_SOURCE=2 -fstack-protector -c test-b.c
31 # Escaped ";" - not really useful, just to check it works.
32 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security \; -Werror=format-security -D_FORTIFY_SOURCE=1 -c test-a.c