From 28d6437fc7009002f98f28e8900e994109927726 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 23 Dec 2019 11:41:20 +0000 Subject: flag-o-matic.eclass: add LDFLAGS testing against linker Before the change we tested only compiler driver (gcc flag parser) for LDFLAGS. This does not cover cases when we would really like to filter out unsupported linker flags like -Wl,--hash-style=gnu passed to non-ELF targets. The change adds test-flag-CCLD() helper to perform all of assembly, compilation and linking steps. Helper is used to filter LDFLAGS variable in strip-unsupported-flags(). Closes: https://bugs.gentoo.org/333763 Signed-off-by: Sergei Trofimovich --- eclass/tests/flag-o-matic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/tests') diff --git a/eclass/tests/flag-o-matic.sh b/eclass/tests/flag-o-matic.sh index 7c078499d70c..90eaf3a6ffb0 100755 --- a/eclass/tests/flag-o-matic.sh +++ b/eclass/tests/flag-o-matic.sh @@ -8,7 +8,7 @@ inherit flag-o-matic CFLAGS="-a -b -c=1 --param l1-cache-size=32" CXXFLAGS="-x -y -z=2" -LDFLAGS="-l -m -n=3" +LDFLAGS="-l -m -n=3 -Wl,--remove-me" ftend() { local ret=$? local msg="Failed; flags are:" -- cgit v1.2.3-65-gdbad