mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-31 13:48:21 +08:00
lmdb-tools: fir LTO-build - use CFLAGS and AR instead of directly.
This commit is contained in:
parent
1981e8b6ee
commit
88b465a6ed
7
Makefile
7
Makefile
@ -20,11 +20,12 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized
|
W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized
|
||||||
THREADS = -pthread
|
THREADS = -pthread
|
||||||
|
XCFLAGS ?= $(CFLAGS)
|
||||||
OPT = -O2 -g
|
OPT = -O2 -g
|
||||||
CFLAGS = $(THREADS) $(OPT) $(W) $(XCFLAGS)
|
CFLAGS := $(THREADS) $(OPT) $(W) $(XCFLAGS)
|
||||||
LDLIBS =
|
LDLIBS =
|
||||||
SOLIBS =
|
SOLIBS =
|
||||||
prefix = /usr/local
|
prefix ?= /usr/local
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
@ -49,7 +50,7 @@ test: all
|
|||||||
./mtest && ./mdb_stat testdb
|
./mtest && ./mdb_stat testdb
|
||||||
|
|
||||||
liblmdb.a: mdb.o midl.o
|
liblmdb.a: mdb.o midl.o
|
||||||
ar rs $@ mdb.o midl.o
|
$(AR) rs $@ mdb.o midl.o
|
||||||
|
|
||||||
liblmdb.so: mdb.lo midl.lo
|
liblmdb.so: mdb.lo midl.lo
|
||||||
# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)
|
# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user