From c7f70f1b16ac9395bb13d1832b5c83b09594224f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 30 Mar 2009 01:28:44 +0200 Subject: build: do not run ldconfig for DESTDIR installations Reference: http://bugzilla.netfilter.org/show_bug.cgi?id=560 Signed-off-by: Jan Engelhardt --- Makefile.am | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index c0181d49..30994746 100644 --- a/Makefile.am +++ b/Makefile.am @@ -111,7 +111,6 @@ tarball: config.status: extensions/GNUmakefile.in \ include/xtables.h.in include/iptables/internal.h.in -# ldconfig may fail when we are not root (as is the case in build systems) -# so add appropriate protection that it does not let `make` fail. +# Using if..fi avoids an ugly "error (ignored)" message :) install-exec-hook: - -/sbin/ldconfig || :; + -if test -z "${DESTDIR}"; then /sbin/ldconfig; fi; -- cgit v1.2.3