[vlc-devel] [PATCH 3/7] package/macosx: skip cache generation when cross-compiling

Felix Paul Kühne fkuehne at videolan.org
Sun Nov 29 20:12:35 CET 2020


From: Felix Paul Kühne <felix at feepk.net>

---
 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 1423d7874e..0e60cc838a 100644
--- a/extras/package/macosx/package.mak
+++ b/extras/package/macosx/package.mak
@@ -61,7 +61,11 @@ endif
 	## Install binary
 	cp $(prefix)/bin/vlc $@/Contents/MacOS/VLC
 	## Generate plugin cache
-	bin/vlc-cache-gen $@/Contents/MacOS/plugins
+	if test "$(build)" = "$(host)"; then \
+		bin/vlc-cache-gen $@/Contents/MacOS/plugins \
+	else \
+		echo "Cross-compilation: cache generation skipped!" ; \
+	fi
 	find $@ -type d -exec chmod ugo+rx '{}' \;
 	find $@ -type f -exec chmod ugo+r '{}' \;
 
-- 
2.24.3 (Apple Git-128)



More information about the vlc-devel mailing list