[vlc-devel] [PATCH] Makefile: add -avoid-version if iOS or tvOS
Alexandre Janniaux
ajanni at videolabs.io
Thu Jul 30 14:02:47 CEST 2020
Those platforms are not using versionned dylib, so simplifying the names
allows simplifying the other scripts relying on this name.
---
lib/Makefile.am | 6 ++++++
src/Makefile.am | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 15763fb97a..63d73db015 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -74,6 +74,12 @@ endif
if HAVE_DARWIN
libvlc_la_LDFLAGS += -Xlinker -install_name -Xlinker @rpath/libvlc.dylib
endif
+if HAVE_IOS
+libvlc_la_LDFLAGS += -avoid-version
+endif
+if HAVE_TVOS
+libvlc_la_LDFLAGS += -avoid-version
+endif
pkgconfig_DATA = libvlc.pc
diff --git a/src/Makefile.am b/src/Makefile.am
index 80cb365cd0..5af2555754 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -550,6 +550,12 @@ libvlccore_objc_la_LDFLAGS = -static
libvlccore_la_LIBADD += libvlccore_objc.la
libvlccore_la_LDFLAGS += -Wl,-framework,Foundation -Xlinker -install_name -Xlinker @rpath/libvlccore.dylib -Wl,-U,_vlc_static_modules
endif
+if HAVE_IOS
+libvlccore_la_LDFLAGS += -avoid-version
+endif
+if HAVE_TVOS
+libvlccore_la_LDFLAGS += -avoid-version
+endif
$(builddir)/libvlccore.sym.out: $(srcdir)/libvlccore.sym
$(AM_V_GEN)cp "$<" "$@"
--
2.27.0
More information about the vlc-devel
mailing list