1
0
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:
Mark Pizzolato
2018-09-30 12:37:49 -07:00
parent 4807fbbf67
commit 31c512c6e7
2 changed files with 5 additions and 4 deletions

View File

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