]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/logs/bad-library
Also support -fpic in -fPIE/-fPIC conflict detection.
[blhc/blhc.git] / t / logs / bad-library
index 32765c30bdc5d9393f733e1fea4f1b519588bf96..811b71151e46f46dc94a06f9fb1cfb69bb03bc80 100644 (file)
@@ -1,3 +1,8 @@
 gcc -D_FORTIFY_SOURCE=2 -g -O2 --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security test.c -fPIC -DPIC -o libtest.o
 gcc -shared -fPIC -DPIC libtest.o -lpthread -O2 -Wl,relro -Wl,--as-needed -o libtest.so
 gcc -shared -fPIC -DPIC libtest.o -lpthread -O2 -Wl,--as-needed -o libtest.so
+
+gcc -shared -fPIC test.o -Wl,-z -Wl,relro -o .libs/libtest.so.1.0.0
+
+gcc -shared -o libtest.so.0d ./test-a.o test/./test-b.o -Wl,-z,now -lpthread -ldl
+/usr/bin/g++ -shared -fpic -o libtest-6.1.so.0 test.o -ltiff -lz