On Wed, Jun 21, 2017 at 10:32:24PM +0300, Martin Storsjö wrote:
> Using check_cflags with -Werror parameters in clang is normally
> futile, since the tests always pass, but add new warnings instead.
> 
> Since the check for -Werror=partial-availability is in the OS section
> of configure, we need to try adding this option here as well, not
> in the section adding other warning flags later.
> 
> This fixes warnings about -Werror=partial-availability being unknown
> for each compile command, when building with Xcode 6.
> ---
> Or should this be in an OS-independent step before the whole OS handling
> block in configure, making sure that cflags checks work as intended for
> clang, anywhere in the rest of configure?

Hmmmmmm.....

This touches upon an architectural shortcoming in configure. (Some of) the
toolchain checks are done after library checks and system checks. They
really shouldn't. All checks should be performed with the final toolchain
that will later be used during the actual compilation procedure.

So this seems like a bandaid necessary due to the architectural problem.
Maybe it's time to tackle the underlying problem instead. I've been meaning
to for a long time.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to