Fix check for whether we need -lm. Restore Ubuntu build.

This commit is contained in:
Michael Martin
2019-10-02 02:03:03 -07:00
parent f93799fdbf
commit 6c7a4e35e6
2 changed files with 8 additions and 1 deletions
+8
View File
@@ -45,12 +45,20 @@ uqm_requirements()
define_have_symbol strcasecmp
define_have_symbol stricmp
# Check to see whether math functions are available for free.
define_have_symbol acos
# Require either strcasecmp or stricmp.
if not have_symbol strcasecmp && not have_symbol stricmp; then
echo "Fatal: Your system defines neither strcasecmp() nor stricmp()."
exit 1
fi
# If we don't have math for free, add -lm to LDFLAGS.
if not have_symbol acos; then
LDFLAGS="$LDFLAGS -lm"
fi
# Add defines for HAVE_ISWGRAPH, HAVE_WCHAR_T, and HAVE_WINT_T
define_have_symbol iswgraph
define_have_type wchar_t
-1
View File
@@ -143,7 +143,6 @@ case "$HOST_SYSTEM" in
BUILDTOOL_LINK_DEPEND='gcce'
;;
*)
EXTRA_PLATFORM_GCC_FLAGS_LINK='-lm'
useGccBuildTools
;;
esac