set params for dynamically linked pcre only if OS is not Win/macOS

This commit is contained in:
Michael Bradley, Jr 2020-06-16 18:34:34 -05:00
parent 46b6f78806
commit ed7dfd86f8
1 changed files with 3 additions and 1 deletions

View File

@ -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