Debian Codegraph @

lmdbxx/etc/fink/lmdb.patch

raw
1 --- Makefile.orig 2014-09-20 08:24:32.000000000 +0200
2 +++ Makefile 2015-04-24 01:12:59.000000000 +0200
3 @@ -17,6 +17,7 @@
4 # read mdb.c before changing any of them.
5 #
6 CC = gcc
7 +LD = $(CC)
8 W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized
9 THREADS = -pthread
10 OPT = -O2 -g
11 @@ -28,7 +29,7 @@
12 ########################################################################
13
14 IHDRS = lmdb.h
15 -ILIBS = liblmdb.a liblmdb.so
16 +ILIBS = liblmdb.a liblmdb.1.dylib
17 IPROGS = mdb_stat mdb_copy mdb_dump mdb_load
18 IDOCS = mdb_stat.1 mdb_copy.1 mdb_dump.1 mdb_load.1
19 PROGS = $(IPROGS) mtest mtest2 mtest3 mtest4 mtest5
20 @@ -38,7 +39,7 @@
21 for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done
22 for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done
23 for f in $(IHDRS); do cp $$f $(DESTDIR)$(prefix)/include; done
24 - for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done
25 + for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/share/man/man1; done
26
27 clean:
28 rm -rf $(PROGS) *.[ao] *.so *~ testdb
29 @@ -50,9 +51,8 @@
30 liblmdb.a: mdb.o midl.o
31 ar rs $@ mdb.o midl.o
32
33 -liblmdb.so: mdb.o midl.o
34 -# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)
35 - $(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.o midl.o $(SOLIBS)
36 +liblmdb.1.dylib: mdb.o midl.o
37 + $(LD) $(LDFLAGS) -dynamiclib -install_name $(prefix)/lib/$(notdir $@) -compatibility_version $(PACKAGE_VERSION) -current_version $(PACKAGE_VERSION) -o $@ $^ $(SOLIBS)
38
39 mdb_stat: mdb_stat.o liblmdb.a
40 mdb_copy: mdb_copy.o liblmdb.a