[vlc-commits] Configure Obj-C to fail with partial-availability

Jean-Baptiste Kempf git at videolan.org
Wed Dec 21 21:23:10 CET 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec 21 21:22:07 2016 +0100| [8f71f55d3b78799c4fc6ee1c103ffe216be4b6c6] | committer: Jean-Baptiste Kempf

Configure Obj-C to fail with partial-availability

This is quite drastic but will avoid some silent failures on old OS X
versions, like 10.7

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f71f55d3b78799c4fc6ee1c103ffe216be4b6c6
---

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 88295d3..158ae60 100644
--- a/configure.ac
+++ b/configure.ac
@@ -159,7 +159,7 @@ case "${host_os}" in
     CXX="${CXX} -stdlib=libc++ -std=c++11"
     CXXFLAGS="${CXXFLAGS} -D_INTL_REDIRECT_MACROS ${ARCH_flag}"
     CPPFLAGS="${CPPFLAGS} ${ARCH_flag}"
-    OBJCFLAGS="${OBJCFLAGS} -D_INTL_REDIRECT_MACROS -std=gnu11 ${ARCH_flag}"
+    OBJCFLAGS="${OBJCFLAGS} -D_INTL_REDIRECT_MACROS -std=gnu11 ${ARCH_flag} -Werror=partial-availability"
     LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names ${ARCH_flag}"
     VLC_ADD_LIBS([libvlc vlc],[-Wl,-undefined,dynamic_lookup,-framework,AppKit])
     VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation,-framework,CoreServices])



More information about the vlc-commits mailing list