diff mbox

[v2,crda] crda: Do not run ldconfig if DESTDIR is set

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

Commit Message

Ben Hutchings Aug. 23, 2014, 7:27 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>
---
v2: Add 'crda:' prefix to subject
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  ' $@