| --- lmdb-LMDB_0.9.23/libraries/liblmdb/Makefile.orig 2019-07-10 08:07:19.072480200 +0300 |
| +++ lmdb-LMDB_0.9.23/libraries/liblmdb/Makefile 2019-07-10 08:13:09.199495200 +0300 |
| @@ -26,7 +26,7 @@ |
| CFLAGS = $(THREADS) $(OPT) $(W) $(XCFLAGS) |
| LDLIBS = |
| SOLIBS = |
| -SOEXT = .so |
| +SOEXT = .dll |
| prefix = /usr/local |
| exec_prefix = $(prefix) |
| bindir = $(exec_prefix)/bin |
| @@ -38,7 +38,7 @@ |
| ######################################################################## |
| |
| IHDRS = lmdb.h |
| -ILIBS = liblmdb.a liblmdb$(SOEXT) |
| +ILIBS = liblmdb.a liblmdb$(SOEXT) liblmdb.dll.a |
| 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 |
| @@ -51,6 +51,7 @@ |
| mkdir -p $(DESTDIR)$(mandir)/man1 |
| for f in $(IPROGS); do cp $$f $(DESTDIR)$(bindir); done |
| for f in $(ILIBS); do cp $$f $(DESTDIR)$(libdir); done |
| + mv $(DESTDIR)$(libdir)/liblmdb$(SOEXT) $(DESTDIR)$(bindir)/ |
| for f in $(IHDRS); do cp $$f $(DESTDIR)$(includedir); done |
| for f in $(IDOCS); do cp $$f $(DESTDIR)$(mandir)/man1; done |
| |
| @@ -66,7 +67,9 @@ |
| |
| liblmdb$(SOEXT): 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) |
| + $(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.lo midl.lo -Wl,--out-implib,$@.a |
| + |
| +liblmdb.dll.a: liblmdb$(SOEXT) |
| |
| mdb_stat: mdb_stat.o liblmdb.a |
| mdb_copy: mdb_copy.o liblmdb.a |