diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-16 16:52:34 -0500 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2008-02-17 08:08:40 -0800 |
commit | a9d23408b0594ffa763add70f0998438bd89c68a (patch) | |
tree | 7842ffe206cc9743b3d77f3466e3c3c24ed7a6b6 | |
parent | 8380c13407fab9cee82329aecfbb8746d570ae26 (diff) | |
download | libcap-a9d23408b0594ffa763add70f0998438bd89c68a.tar.gz |
Do not run ldconfig for FAKEROOT installs
If you're installing into a temporary directory, then running ldconfig will
simply waste CPU and I/O time. The install location will not be any path
that ldconfig searches, and generally people build as non-root so the
ldconfig binary will run for a while before erroring out due to lack of
permissions.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r-- | libcap/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcap/Makefile b/libcap/Makefile index fdb9ae2..b108aa9 100644 --- a/libcap/Makefile +++ b/libcap/Makefile @@ -62,7 +62,9 @@ install: all install -m 0644 $(MINLIBNAME) $(LIBDIR)/$(MINLIBNAME) ln -sf $(MINLIBNAME) $(LIBDIR)/$(MAJLIBNAME) ln -sf $(MAJLIBNAME) $(LIBDIR)/$(LIBNAME) +ifeq ($(FAKEROOT),) -/sbin/ldconfig +endif clean: $(LOCALCLEAN) |