Skip to content

Commit ada0f6f

Browse files
committed
build-sys: use the regex module in gnulib in single thread mode
On "run units target on MSYS2"/MSYS CI environment, many Tmain cases are failed with segmentation faults as show in in regcomp.c of gnulib. change. This change is a work-around. The root cause is unknown. Close #3225, #3226, and #3227. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
1 parent d8505ca commit ada0f6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,10 @@ PRETTY_ARG_VAR([WARNING_CFLAGS], [C compiler warning flags],
560560
# header files or functions.
561561
gl_INIT
562562

563+
AC_DEFINE([GNULIB_REGEX_SINGLE_THREAD], [1],
564+
[Define if all programs in this package call functions of the Gnulib
565+
'regex' module only from a single thread.])
566+
563567
if test "$REPLACE_FNMATCH" != 0; then
564568
AC_DEFINE([USE_GNULIB_FNMATCH])
565569
fi

0 commit comments

Comments
 (0)