lmdb: minor Makefile update, CFLAGS from environment.

Change-Id: I1c36f6bbc064136b404b5de18a88961309883018
This commit is contained in:
Leo Yuriev 2015-09-05 02:20:23 +03:00
parent 16a30be8fc
commit abda67f23e

View File

@ -17,14 +17,10 @@
# There may be other macros in mdb.c of interest. You should
# read mdb.c before changing any of them.
#
CC = gcc
W = -Wall -Werror -Wno-unused-parameter
THREADS = -pthread
XCFLAGS ?= $(CFLAGS)
OPT = -O2 -g
CFLAGS := $(THREADS) $(OPT) $(W) $(XCFLAGS)
CC ?= gcc
CFLAGS ?= -O2 -g -Wall -Werror -Wno-unused-parameter
CFLAGS += -pthread
LDLIBS = -lrt
SOLIBS =
prefix ?= /usr/local
########################################################################