From 524f37b59f51806d3224898946006d1494dabc14 Mon Sep 17 00:00:00 2001 From: Andrii Senkovych Date: Mon, 27 Aug 2018 23:23:00 +0300 Subject: [PATCH] Pass preprocessor macros to the compiler invocation. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 8eed9c9..b982c64 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,9 @@ HTTP_PARSER_OBJS?=src/http-parser/http_parser.o CFLAGS ?= -O3 -Wall -Wextra -Isrc -Isrc/jansson/src -Isrc/http-parser -MD LDFLAGS ?= -levent -pthread +# Pass preprocessor macros to the compile invocation +CFLAGS += $(CPPFLAGS) + # check for MessagePack MSGPACK_LIB=$(shell ls /usr/lib/libmsgpack.so 2>/dev/null) ifneq ($(strip $(MSGPACK_LIB)),)