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