From ed7dfd86f8c6358e39bcdeb2962dd8ff367880cc Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Tue, 16 Jun 2020 18:34:34 -0500 Subject: [PATCH] set params for dynamically linked pcre only if OS is not Win/macOS --- makefiles/variables.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefiles/variables.mk b/makefiles/variables.mk index bfb87a3..a4f43f8 100644 --- a/makefiles/variables.mk +++ b/makefiles/variables.mk @@ -33,7 +33,9 @@ endif # avoid a "libpcre.so.3: cannot open shared object file: No such file or directory" message, where possible ifneq ($(OS), Windows_NT) - NIM_PARAMS := $(NIM_PARAMS) -d:usePcreHeader --passL:"-lpcre" + ifneq ($(strip $(shell uname)), Darwin) + NIM_PARAMS := $(NIM_PARAMS) -d:usePcreHeader --passL:\"-lpcre\" + endif endif # guess who does parsing before variable expansion