From 4494028761c8db7a552ffb2df69e596b4fd508c5 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 10 Mar 2012 22:39:59 +0100 Subject: [PATCH] t: Add tests for "libtool --mode=compile". --- t/logs/libtool | 2 ++ t/tests.t | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.43.2