1From 4a11d4d03ef66729d302cc122fa0c693299a7776 Mon Sep 17 00:00:00 2001 2From: Sakib Sajal <sakib.sajal@windriver.com> 3Date: Wed, 18 Aug 2021 10:49:38 -0400 4Subject: [PATCH] Makefile: use libprefix instead of libdir 5 6libdir expands to "$(exec_prefix)/lib" where "lib" is hardcoded. 7This is a problem for builds that enable MULTILIB since libraries 8are to be installed in "lib64" directory. Hence allow the directory 9to be configurable. 10 11Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> 12--- 13Upstream-Status: Pending 14 15 libraries/liblmdb/Makefile | 4 ++-- 16 1 file changed, 2 insertions(+), 2 deletions(-) 17 18diff --git a/Makefile b/Makefile 19index f254511..1ec74e6 100644 20--- a/Makefile 21+++ b/Makefile 22@@ -46,11 +46,11 @@ all: $(ILIBS) $(PROGS) 23 24 install: $(ILIBS) $(IPROGS) $(IHDRS) 25 mkdir -p $(DESTDIR)$(bindir) 26- mkdir -p $(DESTDIR)$(libdir) 27+ mkdir -p $(DESTDIR)$(libprefix) 28 mkdir -p $(DESTDIR)$(includedir) 29 mkdir -p $(DESTDIR)$(mandir)/man1 30 for f in $(IPROGS); do cp $$f $(DESTDIR)$(bindir); done 31- for f in $(ILIBS); do cp $$f $(DESTDIR)$(libdir); done 32+ for f in $(ILIBS); do cp $$f $(DESTDIR)$(libprefix); done 33 for f in $(IHDRS); do cp $$f $(DESTDIR)$(includedir); done 34 for f in $(IDOCS); do cp $$f $(DESTDIR)$(mandir)/man1; done 35 36