flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274
authorMichał Górny <mgorny@gentoo.org>
Sat, 1 Jul 2017 16:14:44 +0000 (18:14 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 25 Aug 2017 13:53:18 +0000 (15:53 +0200)
commit6f0e2e53c401a01ee8015e356699bbfb9d246e35
treedbd1f1d9e977c140ac6db69702a178bf6fbd225a
parentae9870d9f6b1394ede86176443770b36d7e60ac1
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.
eclass/flag-o-matic.eclass
eclass/tests/flag-o-matic.sh