openldap/openldap-2.4.43-liblmdb-soname.patch

28 lines
905 B
Diff
Raw Normal View History

--- openldap-2.4.43/libraries/liblmdb/Makefile.orig 2016-01-01 20:51:56.318190881 +0100
+++ openldap-2.4.43/libraries/liblmdb/Makefile 2016-01-01 20:53:58.538154157 +0100
@@ -26,13 +26,14 @@
CFLAGS = $(THREADS) $(OPT) $(W) $(XCFLAGS)
LDLIBS =
SOLIBS =
+SONAME = liblmdb.so.0
prefix = /usr/local
mandir = $(prefix)/man
########################################################################
IHDRS = lmdb.h
-ILIBS = liblmdb.a liblmdb.so
+ILIBS = liblmdb.a $(SONAME)
IPROGS = mdb_stat mdb_copy mdb_dump mdb_load
IDOCS = mdb_stat.1 mdb_copy.1 mdb_dump.1 mdb_load.1
PROGS = $(IPROGS) mtest mtest2 mtest3 mtest4 mtest5
@@ -58,7 +59,7 @@
liblmdb.a: mdb.o midl.o
$(AR) rs $@ mdb.o midl.o
-liblmdb.so: mdb.lo midl.lo
+$(SONAME): mdb.lo midl.lo
# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)
$(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.lo midl.lo $(SOLIBS)