From ae391e2a02e8b8d0cb3f393439934318e2df7a23 Mon Sep 17 00:00:00 2001 From: 00k <00k@users.noreply.github.com> Date: Sat, 14 Jan 2017 20:26:06 +0800 Subject: [PATCH] support user defined compiler through CXX env variable --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3965c73..4fbc899 100644 --- a/Makefile +++ b/Makefile @@ -73,9 +73,12 @@ else endif endif +ifndef CXX + CXX=g++ +endif + #----------------------------------------------- -CXX=g++ INCPATH=-Isrc -I$(PROTOBUF_DIR)/include -I$(SNAPPY_DIR)/include -I$(ZLIB_DIR)/include CXXFLAGS += $(OPT) -pipe -W -Wall -fPIC -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -DHAVE_SNAPPY $(INCPATH)