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>
Tue, 8 Aug 2017 19:42:17 +0000 (21:42 +0200)
commit0e6d20439e89c82fa99bbaefbe2a728efc77631c
tree3d1d475d8d0400c7f80186eb81deb7dd86b53c47
parent692442585cdb32cd8c59acab4289565614faf3b8
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