diff mbox

Do not run ldconfig if DESTDIR is set

Message ID 1408821895.4672.110.camel@deadeye.wl.decadent.org.uk (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Ben Hutchings Aug. 23, 2014, 7:24 p.m. UTC
ldconfig should only be run for a local installation, and will fail when
building as an unprivileged user.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
diff mbox

Patch

--- a/Makefile
+++ b/Makefile
@@ -132,7 +132,9 @@  install-libreg:
 	$(NQ) '  INSTALL  libreg'
 	$(Q)mkdir -p $(DESTDIR)/$(LIBDIR)
 	$(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/
+ifndef DESTDIR
 	$(Q)ldconfig
+endif
 
 %.o: %.c regdb.h $(LIBREG)
 	$(NQ) '  CC  ' $@