diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-07-01 18:14:44 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-08-25 15:53:18 +0200 |
commit | 6f0e2e53c401a01ee8015e356699bbfb9d246e35 (patch) | |
tree | dbd1f1d9e977c140ac6db69702a178bf6fbd225a /eclass/tests | |
parent | flag-o-matic.eclass: test-flag-PROG, ignore unused args in clang (diff) | |
download | gentoo-6f0e2e53c401a01ee8015e356699bbfb9d246e35.tar.gz gentoo-6f0e2e53c401a01ee8015e356699bbfb9d246e35.tar.bz2 gentoo-6f0e2e53c401a01ee8015e356699bbfb9d246e35.zip |
flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274
Include LDFLAGS in the variables stripped by strip-unsupported-flags.
The code reuses the current functions for testing CC, and so only remove
LDFLAGS that are rejected by the C compiler and not the linker. This
solves the case of bug #621274 where LDFLAGS contained GCC-specific
-flto flag.
Diffstat (limited to 'eclass/tests')
-rwxr-xr-x | eclass/tests/flag-o-matic.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/tests/flag-o-matic.sh b/eclass/tests/flag-o-matic.sh index 5e7ee354bf33..53af9f862c41 100755 --- a/eclass/tests/flag-o-matic.sh +++ b/eclass/tests/flag-o-matic.sh @@ -55,7 +55,7 @@ done <<<" tbegin "strip-unsupported-flags" strip-unsupported-flags -[[ ${CFLAGS} == "" ]] && [[ ${CXXFLAGS} == "-z=2" ]] +[[ ${CFLAGS} == "" ]] && [[ ${CXXFLAGS} == "-z=2" ]] && [[ ${LDFLAGS} == "" ]] ftend for var in $(all-flag-vars) ; do |