summaryrefslogtreecommitdiffstats
path: root/patches/crda-4.15/0002-Do-not-run-ldconfig-if-DESTDIR-is-set.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/crda-4.15/0002-Do-not-run-ldconfig-if-DESTDIR-is-set.patch')
-rw-r--r--patches/crda-4.15/0002-Do-not-run-ldconfig-if-DESTDIR-is-set.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/crda-4.15/0002-Do-not-run-ldconfig-if-DESTDIR-is-set.patch b/patches/crda-4.15/0002-Do-not-run-ldconfig-if-DESTDIR-is-set.patch
new file mode 100644
index 000000000..8f40e0a89
--- /dev/null
+++ b/patches/crda-4.15/0002-Do-not-run-ldconfig-if-DESTDIR-is-set.patch
@@ -0,0 +1,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 ' $@