]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: do not run ldconfig for DESTDIR installations
authorJan Engelhardt <jengelh@medozas.de>
Sun, 29 Mar 2009 23:28:44 +0000 (01:28 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 3 Apr 2009 18:51:32 +0000 (20:51 +0200)
Reference: http://bugzilla.netfilter.org/show_bug.cgi?id=560
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Makefile.am

index c0181d49a7f02b0bad72e937f582e77530ecc762..3099474652144888ee6e9acd107c465f0a30241e 100644 (file)
@@ -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;