From: Jan Engelhardt Date: Sun, 29 Mar 2009 23:28:44 +0000 (+0200) Subject: build: do not run ldconfig for DESTDIR installations X-Git-Tag: v1.4.3.2~3^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c7f70f1b16ac9395bb13d1832b5c83b09594224f;p=thirdparty%2Fiptables.git build: do not run ldconfig for DESTDIR installations Reference: http://bugzilla.netfilter.org/show_bug.cgi?id=560 Signed-off-by: Jan Engelhardt --- 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;