[vlc-devel] [PATCH v2 13/17] contrib: use makefile instead of environment variable

Martin Storsjö martin at martin.st
Thu Apr 30 11:47:44 CEST 2020

On Thu, 30 Apr 2020, Rémi Denis-Courmont wrote:

> Instead of building with the SDK for the target lowest version, they build
> with the newest, so autoconf correctly detects stuff that's in the SDK but
> not the target.

Yeah, that's a known dilemma.

In general, it's possible to get build systems that test for availability 
to behave in these situations though - I'm pretty sure the contribs build 
system already specifies -miphoneos-version-min somewhere.

By adding -Werror=partial-availability on top of that, function checks 
that actually include headers (instead of just blindly trying to link 
against a symbol) will error out for functions that are introduced after 
the minimum version.

This is just a FYI (and potential future improvement) in any case and 
orthogonal to the patch, which just moves the existing hacks around.

// Martin

More information about the vlc-devel mailing list