Fix check for whether we need -lm. Restore Ubuntu build.
This commit is contained in:
@@ -45,12 +45,20 @@ uqm_requirements()
|
|||||||
define_have_symbol strcasecmp
|
define_have_symbol strcasecmp
|
||||||
define_have_symbol stricmp
|
define_have_symbol stricmp
|
||||||
|
|
||||||
|
# Check to see whether math functions are available for free.
|
||||||
|
define_have_symbol acos
|
||||||
|
|
||||||
# Require either strcasecmp or stricmp.
|
# Require either strcasecmp or stricmp.
|
||||||
if not have_symbol strcasecmp && not have_symbol stricmp; then
|
if not have_symbol strcasecmp && not have_symbol stricmp; then
|
||||||
echo "Fatal: Your system defines neither strcasecmp() nor stricmp()."
|
echo "Fatal: Your system defines neither strcasecmp() nor stricmp()."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Add defines for HAVE_ISWGRAPH, HAVE_WCHAR_T, and HAVE_WINT_T
|
||||||
define_have_symbol iswgraph
|
define_have_symbol iswgraph
|
||||||
define_have_type wchar_t
|
define_have_type wchar_t
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ case "$HOST_SYSTEM" in
|
|||||||
BUILDTOOL_LINK_DEPEND='gcce'
|
BUILDTOOL_LINK_DEPEND='gcce'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
EXTRA_PLATFORM_GCC_FLAGS_LINK='-lm'
|
|
||||||
useGccBuildTools
|
useGccBuildTools
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user