Fix linking with builtin regex library

Use the value of wxUSE_REGEX in configure, not its name.
This commit is contained in:
Vadim Zeitlin
2021-08-02 18:10:20 +02:00
parent a4d06b6c88
commit a4a65f16f6
2 changed files with 4 additions and 4 deletions

4
configure vendored
View File

@@ -38662,9 +38662,9 @@ if test "$wxUSE_GUI" = "yes"; then
;;
esac
fi
case "wxUSE_REGEX" in
case "$wxUSE_REGEX" in
builtin)
wxconfig_3rdparty="pcre $wxconfig_3rdparty"
wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
;;
sys)
WXCONFIG_LIBS="$PCRE_LINK $WXCONFIG_LIBS"

View File

@@ -8260,9 +8260,9 @@ if test "$wxUSE_GUI" = "yes"; then
;;
esac
fi
case "wxUSE_REGEX" in
case "$wxUSE_REGEX" in
builtin)
wxconfig_3rdparty="pcre $wxconfig_3rdparty"
wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
;;
sys)
WXCONFIG_LIBS="$PCRE_LINK $WXCONFIG_LIBS"