1 libtool: link: g++ -shared test-a.o test-b.o test-b.o test-c.o -O2 -pie -Wl,relro -Wl,now -o test.so
2 libtool: link: g++ -shared test-a.o test-b.o test-b.o test-c.o -O2 -Wl,relro -o test.so
4 libtool: link: gcc -Wl,-z -Wl,relro -o test test.o
5 /bin/bash ../libtool --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.o
6 /bin/bash ../libtool --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.o
7 /bin/bash ../libtool --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.o
9 # Just to be sure, libtool won't do this. Note the test.c.
10 /bin/bash ../libtool --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.c
12 libtool: install: /usr/bin/install -c ...
13 /bin/bash ../../libtool --mode=install /usr/bin/install -c ...
14 /bin/bash ../../libtool --mode=install /usr/bin/install -c ...
15 /bin/bash ../../../libtool --mode=install /usr/bin/install -c ...