]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: run ldconfig on `make install`
authorJan Engelhardt <jengelh@medozas.de>
Mon, 8 Sep 2008 13:42:06 +0000 (15:42 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 8 Sep 2008 13:42:06 +0000 (15:42 +0200)
Reporeted-by: Brent Clark <brentgclarklist@gmail.com>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Makefile.am

index 742e3de0bf615509629fa990d0ac5a90c2207814..5465db6c71e1aa2e6a2acf6097c96071a33cd424 100644 (file)
@@ -107,3 +107,8 @@ tarball:
        rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION};
 
 config.status: include/xtables.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.
+install-exec-hook:
+       -/sbin/ldconfig || :;