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--- 13 libraries/liblmdb/Makefile | 4 ++-- 14 1 file changed, 2 insertions(+), 2 deletions(-) 15 16diff --git a/Makefile b/Makefile 17index f254511..1ec74e6 100644 18--- a/Makefile 19+++ b/Makefile 20@@ -46,11 +46,11 @@ all: $(ILIBS) $(PROGS) 21 22 install: $(ILIBS) $(IPROGS) $(IHDRS) 23 mkdir -p $(DESTDIR)$(bindir) 24- mkdir -p $(DESTDIR)$(libdir) 25+ mkdir -p $(DESTDIR)$(libprefix) 26 mkdir -p $(DESTDIR)$(includedir) 27 mkdir -p $(DESTDIR)$(mandir)/man1 28 for f in $(IPROGS); do cp $$f $(DESTDIR)$(bindir); done 29- for f in $(ILIBS); do cp $$f $(DESTDIR)$(libdir); done 30+ for f in $(ILIBS); do cp $$f $(DESTDIR)$(libprefix); done 31 for f in $(IHDRS); do cp $$f $(DESTDIR)$(includedir); done 32 for f in $(IDOCS); do cp $$f $(DESTDIR)$(mandir)/man1; done 33 34