[vlc-commits] macOS build.sh: blacklisting for compat with older macOS versions

David Fuhrmann git at videolan.org
Mon Jul 17 20:59:29 CEST 2017


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Mon Jul 17 20:50:00 2017 +0200| [4ec8c487a522526fe2c62a32c2cf2a315d6f54c6] | committer: David Fuhrmann

macOS build.sh: blacklisting for compat with older macOS versions

VLC should be compiled with the latest SDK version to benefit from
new features. The currently latest SDK (10.12) already marks
availability for lots of libc functions. Unfortunately, as of now
the autotools configure checks do not support these annotations.
Therefore, lets disable known symbols which are not present on our
minimal macOS version, which is 10.7, currently.

refs #18476

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

 extras/package/macosx/build.sh | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/extras/package/macosx/build.sh b/extras/package/macosx/build.sh
index 1ac7f65ce6..cbd3b0fa2b 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -106,6 +106,28 @@ export PATH="${vlcroot}/extras/tools/build/bin:${vlcroot}/contrib/${TRIPLET}/bin
 # Select avcodec flavor to compile contribs with
 export USE_FFMPEG=1
 
+# The following symbols do not exist on the minimal macOS version (10.7), so they are disabled
+# here. This allows compilation also with newer macOS SDKs.
+# Added symbols between 10.11 and 10.12
+export ac_cv_func_basename_r=no
+export ac_cv_func_clock_getres=no
+export ac_cv_func_clock_gettime=no
+export ac_cv_func_clock_settime=no
+export ac_cv_func_dirname_r=no
+export ac_cv_func_getentropy=no
+export ac_cv_func_mkostemp=no
+export ac_cv_func_mkostemps=no
+
+# Added symbols between 10.7 and 10.11
+export ac_cv_func_ffsll=no
+export ac_cv_func_flsll=no
+export ac_cv_func_fdopendir=no
+export ac_cv_func_openat=no # Disables fstatat as well
+
+
+# libnetwork does not exist yet on 10.7 (used by libcddb)
+export ac_cv_lib_network_connect=no
+
 #
 # vlc/extras/tools
 #



More information about the vlc-commits mailing list