From e2f49441694bb5e0dbc8c346f737e0c2304d6522 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 10 Feb 2012 20:37:26 +0100 Subject: [PATCH] BUILD: make it possible to specify ZLIB path --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 02c929105..96417322d 100644 --- a/Makefile +++ b/Makefile @@ -404,9 +404,12 @@ BUILD_OPTIONS += $(call ignore_implicit,USE_GETADDRINFO) endif ifneq ($(USE_ZLIB),) -OPTIONS_CFLAGS += -DUSE_ZLIB +# Use ZLIB_INC and ZLIB_LIB to force path to zlib.h and libz.{a,so} if needed. +ZLIB_INC = +ZLIB_LIB = +OPTIONS_CFLAGS += -DUSE_ZLIB $(if $(ZLIB_INC),-I$(ZLIB_INC)) BUILD_OPTIONS += $(call ignore_implicit,USE_ZLIB) -OPTIONS_LDFLAGS += -lz +OPTIONS_LDFLAGS += $(if $(ZLIB_LIB),-L$(ZLIB_LIB)) -lz endif ifneq ($(USE_POLL),)