From 75e8b13c4b3763dc95199b4a22f3d63b7b698119 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 8 Sep 2008 15:42:06 +0200 Subject: build: run ldconfig on `make install` Reporeted-by: Brent Clark Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) 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 || :; -- cgit v1.2.3