summaryrefslogtreecommitdiffstats
path: root/patches/crda-4.15/0002-Do-not-run-ldconfig-if-DESTDIR-is-set.patch
blob: 8f40e0a89921644e1fffd79a46ab65b6be3efcbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Ben Hutchings <ben@decadent.org.uk>
Date: Sat, 23 Aug 2014 11:13:44 -0700
Subject: [PATCH] Do not run ldconfig if DESTDIR is set

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index 832399dea8db..4ba2ed5aadd8 100644
--- a/Makefile
+++ b/Makefile
@@ -127,7 +127,9 @@ install-libreg:
 	$(NQ) '  INSTALL  libreg'
 	$(Q)mkdir -p $(DESTDIR)/$(LIBDIR)
 	$(Q)$(INSTALL) -m 644 $(LIBREG) $(DESTDIR)/$(LIBDIR)/
+ifndef DESTDIR
 	$(Q)ldconfig
+endif
 
 %.o: %.c regdb.h $(LIBREG)
 	$(NQ) '  CC  ' $@