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

Konstantin Pavlov git at videolan.org
Tue Dec 5 04:40:12 CET 2017


vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Tue Dec  5 06:39:39 2017 +0300| [facf4da263c971db8b22dbf0070280c419c13c6b] | committer: Konstantin Pavlov

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

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

 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