Re: [gentoo-dev] [PATCH] flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274

2017-08-08 Thread Michał Górny
On sob, 2017-07-01 at 18:22 +0200, Michał Górny wrote: > 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 #

[gentoo-dev] [PATCH] flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274

2017-07-01 Thread Michał Górny
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. --- ec