# Linker commands.
if ($line =~ /\s-l[A-Za-z0-9.-]+(\s|\\|$)/
or $line =~ /^libtool: link: /
- or $line =~ m{\s*/bin/bash .+?libtool\s+.+?\s+--mode=(re)?link}) {
+ or $line =~ m{\s*/bin/bash .+?libtool\s+(.+?\s+)?--mode=(re)?link}) {
$compiler = 0;
$linker = 1;
}
libtool: link: g++ -shared test-a.o test-b.o test-b.o test-c.o -O2 -Wl,relro -o test.so
libtool: link: gcc -Wl,-z -Wl,relro -o test test.o
+/bin/bash ../../../libtool --mode=link cc -Wl,-z,relro -o test.so test.o
/bin/bash ../libtool --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.o
/bin/bash ../libtool --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.o
/bin/bash ../libtool --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.o
LDFLAGS missing (-fPIE): 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
LDFLAGS missing (-fPIE -pie -Wl,-z,now): libtool: link: g++ -shared test-a.o test-b.o test-b.o test-c.o -O2 -Wl,relro -o test.so
LDFLAGS missing (-fPIE -pie -Wl,-z,now): libtool: link: gcc -Wl,-z -Wl,relro -o test test.o
+LDFLAGS missing (-fPIE -pie -Wl,-z,now): /bin/bash ../../../libtool --mode=link cc -Wl,-z,relro -o test.so test.o
LDFLAGS missing (-fPIE -pie -Wl,-z,now): /bin/bash ../libtool --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.o
LDFLAGS missing (-fPIE -pie -Wl,-z,now): /bin/bash ../libtool --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.o
LDFLAGS missing (-fPIE -pie -Wl,-z,now): /bin/bash ../libtool --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.o