This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC/PATCH] do not run ldconfig with DESTDIR installs


There is no point in trying to scan the non-DESTDIR tree when we are
doing a DESTDIR install.  It just wastes time and attempts to write
to a path we most likely cannot update in the first place.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2012-08-07  Mike Frysinger  <vapier@gentoo.org>

	* Makefile (install): Move ldconfig run under install_root check.
---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b0d3edb..4c779ed 100644
--- a/Makefile
+++ b/Makefile
@@ -105,12 +105,12 @@ install-symbolic-link: subdir_install
 	rm -f $(symbolic-link-list)
 
 install:
+ifeq (,$(install_root))
 	-test ! -x $(common-objpfx)elf/ldconfig || LC_ALL=C LANGUAGE=C \
 	  $(common-objpfx)elf/ldconfig $(addprefix -r ,$(install_root)) \
 				       $(slibdir) $(libdir)
 ifneq (no,$(PERL))
 ifeq (/usr,$(prefix))
-ifeq (,$(install_root))
 	CC="$(CC)" $(PERL) scripts/test-installation.pl $(common-objpfx)
 endif
 endif
-- 
1.7.9.7


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]