* lib/am/lisp.am (.el.elc): Use '-L dir' instead of calling '--eval' to
explicitly append to the 'load-path' variable.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
## so we override that, too.
if test "$(EMACS)" != "no"; then \
$(EMACS) -q --batch \
- --eval "(setq load-path (cons \"$(srcdir)\" load-path))" \
- --eval "(setq load-path (cons \"$(builddir)\" load-path))" \
+ -L '$(builddir)' -L '$(srcdir)' \
--eval "(defun byte-compile-dest-file (f) \"$@\")" \
--eval "(unless (byte-compile-file \"$<\") (kill-emacs 1))"; \
else :; fi