X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=t%2Flogs%2Fgood-library;h=a104f0d96934ccd8b85a39c5f8704206fd065792;hb=b9a9d5481c7d37c26b0c74357bb78e74a2250295;hp=6c2147061b0f82f19402fa19a2fce79874d2b59e;hpb=631bce18651ddfffb2702d7bb56556bb1b0359d2;p=blhc%2Fblhc.git diff --git a/t/logs/good-library b/t/logs/good-library index 6c21470..a104f0d 100644 --- a/t/logs/good-library +++ b/t/logs/good-library @@ -1,3 +1,5 @@ +dpkg-buildpackage: source package test + # -fPIC and -fPIE conflict with each other and -fPIE is not necessary for # libraries. gcc -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security test.c -fPIC -DPIC -o libtest.o @@ -6,4 +8,6 @@ gcc -shared -fPIC -DPIC libtest.o -lpthread -O2 -Wl,relro -Wl,now -Wl,--as-neede gcc -shared -fPIC test.o -Wl,-z -Wl,relro -Wl,now -o .libs/libtest.so.1.0.0 gcc -shared -fPIE -pie -o libtest.so.0d ./test-a.o test/./test-b.o -Wl,-z,relro -Wl,-z,now -lpthread -ldl -/usr/bin/g++ -shared -fPIC -Wl,-z,relro -Wl,-z,now -o libtest-6.1.so.0 test.o -ltiff -lz +/usr/bin/g++ -shared -fpic -Wl,-z,relro -Wl,-z,now -o libtest-6.1.so.0 test.o -ltiff -lz + +gcc -Wl,-z,now -Wl,-z,relro -Wl,--as-needed -fPIE -pie -o test.cgi test.o -lgcrypt