diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-03-30 01:28:44 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-04-03 20:51:32 +0200 |
commit | c7f70f1b16ac9395bb13d1832b5c83b09594224f (patch) | |
tree | 3e21e7efc2f31a5c80a005524017cad64394005a | |
parent | c4edfa63eda06f02cc5bc1a65d366c55bd2eda30 (diff) |
build: do not run ldconfig for DESTDIR installations
Reference: http://bugzilla.netfilter.org/show_bug.cgi?id=560
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r-- | Makefile.am | 5 |
1 files changed, 2 insertions, 3 deletions
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; |