From aaed1e50e90fff2c7b2a7f99911bf6541970dd21 Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Sat, 4 Apr 2020 15:59:42 -0700 Subject: [PATCH] Fix Linux build; regcomp plays poorly with symbol detection for some reason --- sc2/build/unix/build.config | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sc2/build/unix/build.config b/sc2/build/unix/build.config index a5e145703..126b61f34 100644 --- a/sc2/build/unix/build.config +++ b/sc2/build/unix/build.config @@ -72,12 +72,11 @@ uqm_requirements() define_have_header regex.h # If we have the regex header, see if we need to link it specially - if have_header regex.h; then - define_have_symbol regcomp - if not have_symbol regcomp; then + case "$HOST_SYSTEM" in + MINGW32*) LDFLAGS="$LDFLAGS -lregex" - fi - fi + ;; + esac # Add define for HAVE__BOOL define_have_type _Bool