--- haproxy-1.3.15.4/Makefile.orig 2008-10-03 05:10:56 +0000 +++ haproxy-1.3.15.4/Makefile 2008-10-03 05:15:50 +0000 @@ -387,8 +387,8 @@ ifeq ($(PCREDIR),) PCREDIR := $(shell pcre-config --prefix 2>/dev/null || echo /usr/local) endif -OPTIONS_CFLAGS += -DUSE_PCRE -I$(PCREDIR)/include -OPTIONS_LDFLAGS += -L$(PCREDIR)/lib -lpcreposix -lpcre +OPTIONS_CFLAGS += -DUSE_PCRE $(shell pcre-config --cflags-posix 2>/dev/null || echo /usr/incrude/pcre) +OPTIONS_LDFLAGS += -L$(PCREDIR)/lib $(shell pcre-config --libs-posix) BUILD_OPTIONS += $(call ignore_implicit,USE_PCRE) endif