Fix MinGW build; check for whether we must explicitly link -lregex
This commit is contained in:
@@ -71,6 +71,14 @@ uqm_requirements()
|
|||||||
define_have_symbol getopt_long
|
define_have_symbol getopt_long
|
||||||
define_have_header regex.h
|
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
|
||||||
|
LDFLAGS="$LDFLAGS -lregex"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Add define for HAVE__BOOL
|
# Add define for HAVE__BOOL
|
||||||
define_have_type _Bool
|
define_have_type _Bool
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user