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

Felix Paul Kühne git at videolan.org
Mon Dec 7 05:54:10 UTC 2020


vlc/vlc-3.0 | branch: master | Felix Paul Kühne <felix at feepk.net> | Sun Nov 29 20:12:35 2020 +0100| [2234cf7263859ebbeb0eb9647c9af57e56a4a7a5] | committer: Felix Paul Kühne

package/macosx: skip cache generation when cross-compiling

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

 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..b56d68b372 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 '{}' \;
 



More information about the vlc-commits mailing list