Skip to content

Commit 961915c

Browse files
authored
Merge pull request #3256 from k-takata/fix-pcre2-link-error
buildsys,mingw: Fix link error with PCRE2
2 parents 1c3615c + 9a71e3b commit 961915c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

configure.ac

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,16 @@ AS_IF([test "x$enable_pcre2" != "xno"], [
714714
])
715715
AM_CONDITIONAL(HAVE_PCRE2, test "x$have_libpcre2_8" = xyes)
716716

717+
if test "${enable_static}" = "yes"; then
718+
if test "${have_libpcre2_8}" = "yes"; then
719+
if test "${host_mingw}" = "yes"; then
720+
dnl -DPCRE2_STATIC needs to be added manually.
721+
PCRE2_CFLAGS="$PCRE2_CFLAGS -DPCRE2_STATIC"
722+
fi
723+
fi
724+
fi
725+
726+
717727
# Checks for missing prototypes
718728
# -----------------------------
719729
AC_MSG_NOTICE(checking for new missing prototypes)

0 commit comments

Comments
 (0)