[vlc-commits] package/macosx: skip cache generation when cross-compiling

Felix Paul Kühne git at videolan.org
Wed Dec 9 16:33:23 UTC 2020


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Wed Dec  9 17:30:14 2020 +0100| [561d20cd912ad45210374a3c5dcc972f298a1ec2] | committer: Felix Paul Kühne

package/macosx: skip cache generation when cross-compiling

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

 extras/package/macosx/package.mak | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak
index c71879def2..609f5078b4 100644
--- a/extras/package/macosx/package.mak
+++ b/extras/package/macosx/package.mak
@@ -62,7 +62,11 @@ endif
 	cp "$(macos_destdir)$(prefix)/bin/vlc" $@/Contents/MacOS/VLC
 	install_name_tool -rpath "$(libdir)" "@executable_path/../Frameworks/" $@/Contents/MacOS/VLC
 	## Generate plugin cache
-	VLC_LIB_PATH="$@/Contents/Frameworks" bin/vlc-cache-gen $@/Contents/Frameworks/plugins
+	if test "$(build)" = "$(host)"; then \
+		VLC_LIB_PATH="$@/Contents/Frameworks" bin/vlc-cache-gen $@/Contents/Frameworks/plugins ; \
+	else \
+		echo "Cross-compilation: cache generation skipped!" ; \
+	fi
 	find $@ -type d -exec chmod ugo+rx '{}' \;
 	find $@ -type f -exec chmod ugo+r '{}' \;
 



More information about the vlc-commits mailing list