build: run ldconfig on `make install`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit f7cc979c57c1a10033eef94369480cf973b806cd
Author: Jan Engelhardt <jengelh@xxxxxxxxxx>
Date:   Sun Sep 7 12:25:46 2008 -0400

build: run ldconfig on `make install`

Reporeted-by: Brent Clark <brentgclarklist@xxxxxxxxx>
Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
 Makefile.am |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 742e3de..5465db6 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 || :;


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux