[vlc-commits] macOS packaging: Set VLC_LIB_PATH for vlc-cache-gen call

David Fuhrmann git at videolan.org
Wed Mar 27 19:35:01 CET 2019


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Wed Mar 27 19:30:39 2019 +0100| [ec108a8cc29ae37597b7450dd9378eb3815c051d] | committer: David Fuhrmann

macOS packaging: Set VLC_LIB_PATH for vlc-cache-gen call

Previously, both the installation dir and the plugins dir in VLC.app
were scanned. This lead to some objc warning due to having the same
objects in multiple currently loaded libraries.

This is just a cosmetic change to avoid the warnings, it should not
have any effect on the written plugin cache.

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

 extras/package/macosx/package.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak
index fa2a9ee4ff..e3d78e1b50 100644
--- a/extras/package/macosx/package.mak
+++ b/extras/package/macosx/package.mak
@@ -52,7 +52,7 @@ endif
 	cp $(prefix)/bin/vlc $@/Contents/MacOS/VLC
 	install_name_tool -rpath "$(libdir)" "@executable_path/../Frameworks/" $@/Contents/MacOS/VLC
 	## Generate plugin cache
-	bin/vlc-cache-gen $@/Contents/Frameworks/plugins
+	VLC_LIB_PATH="$@/Contents/Frameworks" bin/vlc-cache-gen $@/Contents/Frameworks/plugins
 	find $@ -type d -exec chmod ugo+rx '{}' \;
 	find $@ -type f -exec chmod ugo+r '{}' \;
 



More information about the vlc-commits mailing list