summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/AppHdr.h4
-rw-r--r--crawl-ref/source/makefile.mgw2
-rw-r--r--crawl-ref/source/makefile_tiles.mgw3
3 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index 87f5b9e55d..4177673947 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -196,8 +196,8 @@
// #define WINMM_PLAY_SOUNDS
// Use Perl-compatible regular expressions. libpcre must be available and
- // linked in.
- // #define REGEX_PCRE
+ // linked in. This is optional.
+ #define REGEX_PCRE
#else
#error Missing platform #define or unsupported compiler.
#endif
diff --git a/crawl-ref/source/makefile.mgw b/crawl-ref/source/makefile.mgw
index 5f1350c361..f60dd5ffc8 100644
--- a/crawl-ref/source/makefile.mgw
+++ b/crawl-ref/source/makefile.mgw
@@ -36,7 +36,7 @@ SQLLIB := sqlite3
SQLIBA := lib$(SQLLIB).a
FSQLLIBA := $(SQLLIB)\$(SQLIBA)
-LIB = -static -lwinmm -L$(LUASRC) -l$(LUALIB) -L$(SQLSRC) -l$(SQLLIB)
+LIB = -static -lwinmm -L$(LUASRC) -l$(LUALIB) -L$(SQLSRC) -l$(SQLLIB) -lpcre
INCLUDES := -Iutil -I. -I$(LUASRC) -I$(SQLSRC)
CFWARN := -Wall -Wwrite-strings -Wshadow -pedantic
diff --git a/crawl-ref/source/makefile_tiles.mgw b/crawl-ref/source/makefile_tiles.mgw
index 523fb18a9c..dae38c86f2 100644
--- a/crawl-ref/source/makefile_tiles.mgw
+++ b/crawl-ref/source/makefile_tiles.mgw
@@ -36,7 +36,7 @@ SQLLIB := sqlite3
SQLIBA := lib$(SQLLIB).a
FSQLLIBA := $(SQLLIB)\$(SQLIBA)
-LIB = -static -lwinmm -mwindows -lcomctl32 -L$(LUASRC) -l$(LUALIB) -L$(SQLSRC) -l$(SQLLIB)
+LIB = -static -lwinmm -mwindows -lcomctl32 -L$(LUASRC) -l$(LUALIB) -L$(SQLSRC) -l$(SQLLIB) -lpcre
INCLUDES := -Iutil -I. -I$(LUASRC) -I$(SQLSRC)
CFWARN := -Wall -Wwrite-strings -pedantic
@@ -48,7 +48,6 @@ CFOTHERS := -fsigned-char \
-D$(OS_TYPE) $(EXTRA_FLAGS) \
-DWINMM_PLAY_SOUNDS -DCLUA_BINDINGS \
-DUSE_TILE -DWINVER=0x0400 -D_WIN32_IE=0x0400
-# -DREGEX_PCRE
CFLAGS := $(INCLUDES) $(CFWARN) $(CFOTHERS)
YCFLAGS := $(INCLUDES) $(CFOTHERS)