From: Jan Engelhardt Date: Mon, 8 Sep 2008 13:42:06 +0000 (+0200) Subject: build: run ldconfig on `make install` X-Git-Tag: v1.4.2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75e8b13c4b3763dc95199b4a22f3d63b7b698119;p=thirdparty%2Fiptables.git build: run ldconfig on `make install` Reporeted-by: Brent Clark Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- diff --git a/Makefile.am b/Makefile.am index 742e3de0..5465db6c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 || :;