Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 1 | From 4a11d4d03ef66729d302cc122fa0c693299a7776 Mon Sep 17 00:00:00 2001 |
| 2 | From: Sakib Sajal <sakib.sajal@windriver.com> |
| 3 | Date: Wed, 18 Aug 2021 10:49:38 -0400 |
| 4 | Subject: [PATCH] Makefile: use libprefix instead of libdir |
| 5 | |
| 6 | libdir expands to "$(exec_prefix)/lib" where "lib" is hardcoded. |
| 7 | This is a problem for builds that enable MULTILIB since libraries |
| 8 | are to be installed in "lib64" directory. Hence allow the directory |
| 9 | to be configurable. |
| 10 | |
| 11 | Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> |
| 12 | --- |
| 13 | libraries/liblmdb/Makefile | 4 ++-- |
| 14 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/Makefile b/Makefile |
| 17 | index 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 | |