diff options
| -rw-r--r-- | meta-oe/recipes-dbs/lmdb/files/0001-Makefile-use-libprefix-instead-of-libdir.patch | 33 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb | 5 |
2 files changed, 36 insertions, 2 deletions
diff --git a/meta-oe/recipes-dbs/lmdb/files/0001-Makefile-use-libprefix-instead-of-libdir.patch b/meta-oe/recipes-dbs/lmdb/files/0001-Makefile-use-libprefix-instead-of-libdir.patch new file mode 100644 index 0000000000..2cc98e6d62 --- /dev/null +++ b/meta-oe/recipes-dbs/lmdb/files/0001-Makefile-use-libprefix-instead-of-libdir.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 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 | |||
diff --git a/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb b/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb index 0746da1411..3c6ffe04e6 100644 --- a/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb +++ b/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb | |||
| @@ -10,7 +10,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=153d07ef052c4a37a8fac23bc6031972" | |||
| 10 | 10 | ||
| 11 | SRC_URI = "git://github.com/LMDB/lmdb.git;nobranch=1 \ | 11 | SRC_URI = "git://github.com/LMDB/lmdb.git;nobranch=1 \ |
| 12 | file://run-ptest \ | 12 | file://run-ptest \ |
| 13 | " | 13 | file://0001-Makefile-use-libprefix-instead-of-libdir.patch \ |
| 14 | " | ||
| 14 | 15 | ||
| 15 | SRCREV = "LMDB_${PV}" | 16 | SRCREV = "LMDB_${PV}" |
| 16 | 17 | ||
| @@ -26,7 +27,7 @@ do_compile() { | |||
| 26 | 27 | ||
| 27 | do_install() { | 28 | do_install() { |
| 28 | oe_runmake CC="${CC}" DESTDIR="${D}" prefix="${prefix}" libprefix="${libdir}" manprefix="${mandir}" SOEXT=".so.${PV}" LDFLAGS="${LDFLAGS}" install | 29 | oe_runmake CC="${CC}" DESTDIR="${D}" prefix="${prefix}" libprefix="${libdir}" manprefix="${mandir}" SOEXT=".so.${PV}" LDFLAGS="${LDFLAGS}" install |
| 29 | cd ${D}/${libdir} | 30 | cd ${D}${libdir} |
| 30 | ln -s liblmdb.so.${PV} liblmdb.so | 31 | ln -s liblmdb.so.${PV} liblmdb.so |
| 31 | rm liblmdb.a | 32 | rm liblmdb.a |
| 32 | } | 33 | } |
