Only apply linker renaming of strtod() when using 32-bit MinGW.

mingw-w64 doesn't need this, and the 64-bit version doesn't support it.
This commit is contained in:
Martin Whitaker 2015-05-05 22:55:15 +01:00
parent 1b3e321d35
commit 9e3f1ef1ff
1 changed files with 2 additions and 1 deletions

3
aclocal.m4 vendored
View File

@ -223,8 +223,9 @@ AC_SUBST(strip_dynamic)
# -------------
AC_DEFUN([AX_C99_STRTOD],
[# On MinGW we need to jump through hoops to get a C99 compliant strtod().
# mingw-w64 doesn't need this, and the 64-bit version doesn't support it.
case "${host}" in
*-*-mingw*)
*-*-mingw32)
LDFLAGS+=" -Wl,--undefined=___strtod,--wrap,strtod,--defsym,___wrap_strtod=___strtod"
;;
esac