Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | From: Ben Hutchings <ben@decadent.org.uk> |
| 2 | Date: Sat, 23 Aug 2014 12:27:34 -0700 |
| 3 | Subject: crda: Do not run ldconfig if DESTDIR is set |
| 4 | |
| 5 | Upstream-Status: Backport [http://www.spinics.net/lists/linux-wireless/msg126028.html] |
| 6 | |
| 7 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> |
| 8 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> |
| 9 | |
| 10 | --- a/Makefile |
| 11 | +++ b/Makefile |
| 12 | @@ -132,7 +132,9 @@ install-libreg: |
| 13 | $(NQ) ' INSTALL libreg' |
| 14 | $(Q)mkdir -p $(DESTDIR)/$(LIBDIR) |
| 15 | $(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/ |
| 16 | +ifndef DESTDIR |
| 17 | $(Q)ldconfig |
| 18 | +endif |
| 19 | |
| 20 | %.o: %.c regdb.h $(LIBREG) |
| 21 | $(NQ) ' CC ' $@ |