summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-12-23 11:41:20 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2019-12-24 11:01:01 +0000
commit28d6437fc7009002f98f28e8900e994109927726 (patch)
tree894cc031dc4c4fbbe8ac55ecb2d1525f7abbf79b /eclass/tests
parentsys-devel/autogen: amd64 stable wrt bug #703632 (diff)
downloadgentoo-28d6437fc7009002f98f28e8900e994109927726.tar.gz
gentoo-28d6437fc7009002f98f28e8900e994109927726.tar.bz2
gentoo-28d6437fc7009002f98f28e8900e994109927726.zip
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 <slyfox@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-xeclass/tests/flag-o-matic.sh2
1 files changed, 1 insertions, 1 deletions
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:"