]> ruderich.org/simon Gitweb - blhc/blhc.git/blob - t/logs/good-library
c077840de1d2dd713944bd14fbfc025cf332b821
[blhc/blhc.git] / t / logs / good-library
1 # -fPIC and -fPIE conflict with each other and -fPIE is not necessary for
2 # libraries.
3 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
4 gcc -shared -fPIC -DPIC libtest.o -lpthread -O2 -Wl,relro -Wl,now -Wl,--as-needed -o libtest.so
5
6 gcc -shared -fPIC test.o -Wl,-z -Wl,relro -Wl,now -o .libs/libtest.so.1.0.0