| 1 |
dpkg-buildpackage: source package test |
| 2 |
|
| 3 |
# -fPIC and -fPIE conflict with each other and -fPIE is not necessary for |
| 4 |
# libraries. |
| 5 |
gcc -D_FORTIFY_SOURCE=2 -g -Wl,relro -Wl,now -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security test.c -fPIC -DPIC -o libtest.so |
| 6 |
gcc -D_FORTIFY_SOURCE=2 -g -Wl,relro -Wl,now -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security test.cc -fPIC -DPIC -o libtest.so |
| 7 |
gcc -shared -fPIC -DPIC libtest.o -lpthread -O2 -Wl,relro -Wl,now -Wl,--as-needed -o libtest.so |
| 8 |
|
| 9 |
gcc -shared -fPIC test.o -Wl,-z -Wl,relro -Wl,now -o .libs/libtest.so.1.0.0 |
| 10 |
|
| 11 |
gcc -shared -fPIE -pie -o libtest.so.0d ./test-a.o test/./test-b.o -Wl,-z,relro -Wl,-z,now -lpthread -ldl |
| 12 |
/usr/bin/g++ -shared -fpic -Wl,-z,relro -Wl,-z,now -o libtest-6.1.so.0 test.o -ltiff -lz |
| 13 |
|
| 14 |
gcc -Wl,-z,now -Wl,-z,relro -Wl,--as-needed -fPIE -pie -o test.cgi test.o -lgcrypt |
| 15 |
|
| 16 |
gcc -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -fPIE -pie -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security test.c -o lib`basename test/test`.so |
| 17 |
|
| 18 |
gcc -fPIE -pie -Wl,-z,relro -Wl,-z,now -o test+test test+test.o |
| 19 |
gcc -fPIE -pie -Wl,-z,relro -Wl,-z,now -o test.test test.test.o |
| 20 |
gcc -fPIE -pie -Wl,-z,relro -Wl,-z,now -o test.bin test.test.o |
| 21 |
gcc -fPIE -pie -Wl,-z,relro -Wl,-z,now -o test.real test.test.o |
| 22 |
gcc -fPIE -pie -Wl,-z,relro -Wl,-z,now -o test.cgi test.test.o |