Generate plugins cache during staged (native) installation
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 17 Aug 2011 16:25:25 +0000 (19:25 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 17 Aug 2011 16:26:01 +0000 (19:26 +0300)
modules/Makefile.am

index f739ecc..3b3664d 100644 (file)
@@ -75,10 +75,10 @@ stamp-cache:
        fi
 
 install-exec-hook:
-       if test -z "$(DESTDIR)" -a "$(build)" = "$(host)"; then \
-               LD_LIBRARY_PATH="$(libdir)" \
-               "$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
-                        "$(vlclibdir)/plugins" ; \
+       if test "$(build)" = "$(host)"; then \
+               LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
+               "$(DESTDIR)$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
+                        "$(DESTDIR)$(vlclibdir)/plugins" ; \
        else \
-               echo "Staged installation: cache generation skipped!" ; \
+               echo "Cross-compilation: cache generation skipped!" ; \
        fi