[vlc-commits] contribs: srt: override Werror=partial-availability for DARWIN_OS.

Konstantin Pavlov git at videolan.org
Tue Dec 5 12:03:39 CET 2017


vlc/vlc-3.0 | branch: master | Konstantin Pavlov <thresh at videolan.org> | Tue Dec  5 06:39:39 2017 +0300| [998cca95c2b0a369119feddf7516599437f85ee2] | committer: Jean-Baptiste Kempf

contribs: srt: override Werror=partial-availability for DARWIN_OS.

(cherry picked from commit facf4da263c971db8b22dbf0070280c419c13c6b)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=998cca95c2b0a369119feddf7516599437f85ee2
---

 contrib/src/srt/rules.mak | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/contrib/src/srt/rules.mak b/contrib/src/srt/rules.mak
index f1e76ec716..34b729e983 100644
--- a/contrib/src/srt/rules.mak
+++ b/contrib/src/srt/rules.mak
@@ -13,6 +13,10 @@ ifeq ($(call need_pkg,"srt >= 1.2.2"),)
 PKGS_FOUND += srt
 endif
 
+ifdef HAVE_DARWIN_OS
+SRT_DARWIN=CFLAGS="$(CFLAGS) -Wno-error=partial-availability" CXXFLAGS="$(CXXFLAGS) -Wno-error=partial-availability"
+endif
+
 $(TARBALLS)/$(SRT_TARBALL):
 	$(call download_pkg,$(SRT_URL),srt)
 
@@ -25,7 +29,7 @@ srt: $(SRT_TARBALL) .sum-srt
 DEPS_srt = gnutls $(DEPS_gnutls)
 
 .srt: srt toolchain.cmake
-	cd $< && $(HOSTVARS_PIC) $(CMAKE) \
+	cd $< && $(HOSTVARS_PIC) $(SRT_DARWIN) $(CMAKE) \
 		-DENABLE_SHARED=OFF -DUSE_GNUTLS=ON -DENABLE_CXX11=OFF
 	cd $< && $(MAKE) install
 	touch $@



More information about the vlc-commits mailing list