From bf1da8c09a8db855d044683495cd6a9e97c385d0 Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Sun, 23 Feb 2014 15:18:22 -0500 Subject: Allow building against the system libpcre. Building with USE_PCRE=y enables and links against the PCRE regexp engine without building libpcre as a contrib. --- crawl-ref/source/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/Makefile') diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile index e76472e9f7..d8d66e602d 100644 --- a/crawl-ref/source/Makefile +++ b/crawl-ref/source/Makefile @@ -952,6 +952,10 @@ endif endif ifdef BUILD_PCRE +USE_PCRE = YesPlease +endif + +ifdef USE_PCRE DEFINES += -DREGEX_PCRE LIBS += -lpcre endif -- cgit v1.2.3-54-g00ecf