]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/logs/good-library
First working version.
[blhc/blhc.git] / t / logs / good-library
diff --git a/t/logs/good-library b/t/logs/good-library
new file mode 100644 (file)
index 0000000..c160a8a
--- /dev/null
@@ -0,0 +1,4 @@
+# -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
+gcc -shared -fPIC -DPIC libtest.o -lpthread -O2 -Wl,relro -Wl,now -Wl,--as-needed -o libtest.so