mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:04:12 +08:00
lmdb: minor Makefile update, CFLAGS from environment.
Change-Id: I1c36f6bbc064136b404b5de18a88961309883018
This commit is contained in:
parent
16a30be8fc
commit
abda67f23e
10
Makefile
10
Makefile
@ -17,14 +17,10 @@
|
|||||||
# There may be other macros in mdb.c of interest. You should
|
# There may be other macros in mdb.c of interest. You should
|
||||||
# read mdb.c before changing any of them.
|
# read mdb.c before changing any of them.
|
||||||
#
|
#
|
||||||
CC = gcc
|
CC ?= gcc
|
||||||
W = -Wall -Werror -Wno-unused-parameter
|
CFLAGS ?= -O2 -g -Wall -Werror -Wno-unused-parameter
|
||||||
THREADS = -pthread
|
CFLAGS += -pthread
|
||||||
XCFLAGS ?= $(CFLAGS)
|
|
||||||
OPT = -O2 -g
|
|
||||||
CFLAGS := $(THREADS) $(OPT) $(W) $(XCFLAGS)
|
|
||||||
LDLIBS = -lrt
|
LDLIBS = -lrt
|
||||||
SOLIBS =
|
|
||||||
prefix ?= /usr/local
|
prefix ?= /usr/local
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user