[vlc-commits] contrib/ebml+mkv: compile with hidden symbols

Felix Paul Kühne git at videolan.org
Mon Jan 26 20:39:24 CET 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jan 24 23:53:59 2015 +0100| [6031c9769a0dbd8a4f484027d5856b12ec9cc188] | committer: Felix Paul Kühne

contrib/ebml+mkv: compile with hidden symbols

This solves linking issues on iOS and should have no negative impact on further platforms

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

 contrib/src/ebml/rules.mak     |    4 ++--
 contrib/src/matroska/rules.mak |    4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/contrib/src/ebml/rules.mak b/contrib/src/ebml/rules.mak
index 9d87c29..4a5ac16 100644
--- a/contrib/src/ebml/rules.mak
+++ b/contrib/src/ebml/rules.mak
@@ -14,10 +14,10 @@ libebml: libebml-$(EBML_VERSION).tar.bz2 .sum-ebml
 	$(MOVE)
 
 # libebml requires exceptions
-EBML_EXTRA_FLAGS = CXXFLAGS="${CXXFLAGS} -fexceptions" \
+EBML_EXTRA_FLAGS = CXXFLAGS="${CXXFLAGS} -fexceptions -fvisibility=hidden" \
 					CPPFLAGS=""
 
 .ebml: libebml
-	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(EBML_EXTRA_FLAGS)
 	cd $< && $(MAKE) install
 	touch $@
diff --git a/contrib/src/matroska/rules.mak b/contrib/src/matroska/rules.mak
index b8d0165..c71ee83 100644
--- a/contrib/src/matroska/rules.mak
+++ b/contrib/src/matroska/rules.mak
@@ -16,7 +16,9 @@ libmatroska: libmatroska-$(MATROSKA_VERSION).tar.bz2 .sum-matroska
 	$(UNPACK)
 	$(MOVE)
 
+MATROSKA_EXTRA_FLAGS = CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
+
 .matroska: libmatroska
-	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(MATROSKA_EXTRA_FLAGS)
 	cd $< && $(MAKE) install
 	touch $@



More information about the vlc-commits mailing list