mirror of
https://github.com/simh/simh.git
synced 2026-01-28 20:51:20 +00:00
makefile: Avoid using PCRE REGEX support on OS X
- OS X libpcreposix segfaults when a compiled regular expression is freed. - Revise regular expression syntax used in VAX diagnostic scripts to avoid Perl oriented extensions.
This commit is contained in:
4
makefile
4
makefile
@@ -479,8 +479,8 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
# Find available RegEx library. Prefer libpcreposix.
|
||||
ifneq (,$(and $(call find_include,pcreposix),$(call find_include,pcre)))
|
||||
# Find available RegEx library. Prefer libpcreposix - except on OS X.
|
||||
ifneq (,$(and $(call find_include,pcreposix),$(call find_include,pcre),$(subst Darwin,,$(OSTYPE))))
|
||||
ifneq (,$(and $(call find_lib,pcreposix),$(call find_lib,pcre)))
|
||||
OS_CCDEFS += -DHAVE_PCREPOSIX_H
|
||||
OS_LDFLAGS += -lpcreposix -lpcre
|
||||
|
||||
Reference in New Issue
Block a user