Merge pull request #8 from status-im/refactor/force-dynamic-pcre-linux-only

set params for dynamically linked pcre only if OS is not Win/macOS
This commit is contained in:
Ștefan Talpalaru 2020-06-17 14:09:08 +02:00 committed by GitHub
commit b3fccb5662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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