1From b4d418bf3f78748d84e3cfb110833443eef34284 Mon Sep 17 00:00:00 2001
2From: Justin Bronder <jsbronder@cold-front.org>
3Date: Thu, 25 Aug 2022 17:22:20 -0400
4Subject: [PATCH] make: set soname on liblmdb
5
6---
7Upstream-Status: Pending
8
9 libraries/liblmdb/Makefile | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/libraries/liblmdb/Makefile b/libraries/liblmdb/Makefile
13index 1ec74e6..ea08cd6 100644
14--- a/libraries/liblmdb/Makefile
15+++ b/libraries/liblmdb/Makefile
16@@ -66,7 +66,7 @@ liblmdb.a:	mdb.o midl.o
17
18 liblmdb$(SOEXT):	mdb.lo midl.lo
19 #	$(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)
20-	$(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.lo midl.lo $(SOLIBS)
21+	$(CC) $(LDFLAGS) -pthread -shared -Wl,-soname,$@ -o $@ mdb.lo midl.lo $(SOLIBS)
22
23 mdb_stat: mdb_stat.o liblmdb.a
24 mdb_copy: mdb_copy.o liblmdb.a
25