X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=t%2Flogs%2Fgood-library;h=7d6a0ec88fce38575024ffa09a24710385c31a65;hb=50b731db501c79ad33cb40845c16638703a4ea15;hp=76d461f1212a5b37be61bb1eeebe42fbf65e39de;hpb=95124b124684fece31ecba687478878aa609756b;p=blhc%2Fblhc.git diff --git a/t/logs/good-library b/t/logs/good-library index 76d461f..7d6a0ec 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,3 +8,4 @@ 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