Commit b6c4de7c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix race between installation and execution of vlc-cache-gen

parent 223bb3fc
......@@ -404,6 +404,18 @@ noinst_DATA = VLC.app
endif
endif
###############################################################################
# Installing plugins cache
###############################################################################
install-exec-hook:
if test "$(build)" = "$(host)"; then \
LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
"$(DESTDIR)$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
"$(DESTDIR)$(vlclibdir)/plugins" ; \
else \
echo "Cross-compilation: cache generation skipped!" ; \
fi
silentstd = $(silentstd_$(V))
silentstd_ = $(silentstd_$(AM_DEFAULT_VERBOSITY))
silentstd_0 = 2>&1 >/dev/null
......
......@@ -84,12 +84,3 @@ MOSTLYCLEANFILES = $(noinst_DATA)
else \
echo "Cross-compilation: cache generation skipped!" ; \
fi
install-exec-hook:
if test "$(build)" = "$(host)"; then \
LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
"$(DESTDIR)$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
"$(DESTDIR)$(vlclibdir)/plugins" ; \
else \
echo "Cross-compilation: cache generation skipped!" ; \
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment