From: Christian Wiese Date: Thu, 20 Nov 2008 13:47:04 +0000 (+0100) Subject: [BUILD] Fixed Makefile for linking pcre X-Git-Tag: v1.3.16~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c820300adf36700cbbff15249a8629baa63c5f5a;p=thirdparty%2Fhaproxy.git [BUILD] Fixed Makefile for linking pcre If both make parameters USE_PCRE and USE_STATIC_PCRE are set to 1 while building haproxy, pcre gets linked in dynamically. Therefore we check if USE_STATIC_PCRE was explicitely enabled to ommit the CFLAGS and LDFLAGS normally set if USE_PCRE is enabled. --- diff --git a/Makefile b/Makefile index 3d87d70e1a..eb2a0958ce 100644 --- a/Makefile +++ b/Makefile @@ -393,8 +393,10 @@ ifneq ($(USE_PCRE),) ifeq ($(PCREDIR),) PCREDIR := $(shell pcre-config --prefix 2>/dev/null || echo /usr/local) endif +ifeq ($(USE_STATIC_PCRE),) OPTIONS_CFLAGS += -DUSE_PCRE -I$(PCREDIR)/include OPTIONS_LDFLAGS += -L$(PCREDIR)/lib -lpcreposix -lpcre +endif BUILD_OPTIONS += $(call ignore_implicit,USE_PCRE) endif