Skip to content

Commit

Permalink
support user defined compiler through CXX env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
00k committed Jan 16, 2017
1 parent 85ec224 commit ae391e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ae391e2

Please sign in to comment.