From abda67f23ed63f78ff2b7a1c1aaaeafdeac06d6e Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Sat, 5 Sep 2015 02:20:23 +0300 Subject: [PATCH] lmdb: minor Makefile update, CFLAGS from environment. Change-Id: I1c36f6bbc064136b404b5de18a88961309883018 --- Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 67d1aa14..96515d57 100644 --- a/Makefile +++ b/Makefile @@ -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 ########################################################################