Support compiling without PCRE (#12)
This commit is contained in:
parent
384264142c
commit
abf45cfa27
|
@ -124,6 +124,12 @@ it comes to support.
|
||||||
|
|
||||||
`make USE_SYSTEM_NIM=1 test`
|
`make USE_SYSTEM_NIM=1 test`
|
||||||
|
|
||||||
|
### LINK_PCRE
|
||||||
|
|
||||||
|
Link PCRE, defaults to 1.
|
||||||
|
|
||||||
|
`make LINK_PCRE=0`
|
||||||
|
|
||||||
## Make targets
|
## Make targets
|
||||||
|
|
||||||
### build
|
### build
|
||||||
|
|
|
@ -32,9 +32,12 @@ ifdef LOG_LEVEL
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# avoid a "libpcre.so.3: cannot open shared object file: No such file or directory" message, where possible
|
# avoid a "libpcre.so.3: cannot open shared object file: No such file or directory" message, where possible
|
||||||
ifneq ($(OS), Windows_NT)
|
LINK_PCRE := 1
|
||||||
ifneq ($(strip $(shell uname)), Darwin)
|
ifeq ($(LINK_PCRE), 1)
|
||||||
NIM_PARAMS := $(NIM_PARAMS) -d:usePcreHeader --passL:\"-lpcre\"
|
ifneq ($(OS), Windows_NT)
|
||||||
|
ifneq ($(strip $(shell uname)), Darwin)
|
||||||
|
NIM_PARAMS := $(NIM_PARAMS) -d:usePcreHeader --passL:\"-lpcre\"
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue