From a0d1b35862db23469f7baf889d5269fa32ffe58c Mon Sep 17 00:00:00 2001 From: Matthew Furseman Date: Tue, 21 Sep 2021 12:28:14 +0100 Subject: [PATCH] Add preprocessor definition for static PCRE --- src/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Makefile b/src/Makefile index 3a59954..7810c92 100644 --- a/src/Makefile +++ b/src/Makefile @@ -60,6 +60,9 @@ ifneq ($(words $(PCRE_LIB) $(PCRE_INCLUDE)),0) LIB_SYS_LIBS_DEFAULT += pcre LIB_SYS_LIBS_WIN32 += $(PCRE_LIB)\\pcre SHRLIB_DEPLIB_DIRS += $(PCRE_LIB) +ifdef ENABLE_STATIC +CPPFLAGS += -DPCRE_STATIC +endif endif endif