diff --git a/Makefile.am b/Makefile.am
index a64a20a..735e07a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -359,6 +359,20 @@ CLEANFILES += \
 
 # ------------------------------------------------------------------------------
 
+install-exec-hook:
+	# Avoid installing .la files, as we do not use libltdl.
+	@for la in $(lib_LTLIBRARIES); do \
+	  rm -f "$(DESTDIR)$(libdir)/`basename $$la`"; \
+	done
+	@for la in $(pyexec_LTLIBRARIES); do \
+	  rm -f "$(DESTDIR)$(pyexecdir)/`basename $$la`"; \
+	done
+	@for la in $(luaexec_LTLIBRARIES); do \
+	  rm -f "$(DESTDIR)$(luaexecdir)/`basename $$la`"; \
+	done
+
+# ------------------------------------------------------------------------------
+
 # Use systemd timers if available
 if HAVE_SYSTEMD
 systemdsystemunit_DATA = \
