From: Simon Ruderich Date: Sat, 10 Mar 2012 21:39:59 +0000 (+0100) Subject: t: Add tests for "libtool --mode=compile". X-Git-Tag: 0.01~137 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=4494028761c8db7a552ffb2df69e596b4fd508c5;p=blhc%2Fblhc.git t: Add tests for "libtool --mode=compile". --- diff --git a/t/logs/libtool b/t/logs/libtool index cde74f9..a948e74 100644 --- a/t/logs/libtool +++ b/t/logs/libtool @@ -1,3 +1,5 @@ +/bin/bash ../../libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -Werror=format-security -c test.c + 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 libtool: link: g++ -shared test-a.o test-b.o test-b.o test-c.o -O2 -Wl,relro -o test.so diff --git a/t/tests.t b/t/tests.t index 2f886ac..ad33134 100644 --- a/t/tests.t +++ b/t/tests.t @@ -304,7 +304,8 @@ LDFLAGS missing (-Wl,-z,relro -fPIE -pie -Wl,-z,now): g++ -Wl,-z,defs -o test te # libtool is_blhc 'libtool', '--bindnow', 4, - "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 + "CFLAGS missing (-Wformat -fPIE): /bin/bash ../../libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -Werror=format-security -c test.c +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 --tag=CC --mode=link gcc -Wl,-z,relro -o test.so test.o