Merge pull request #148 from Jesus89/mingw-fix

Fix x86_64-w64-mingw32 build: undefined ___strtod
This commit is contained in:
Stephen Williams 2017-02-27 15:12:12 -08:00 committed by GitHub
commit fbd69e1774
1 changed files with 3 additions and 1 deletions

4
aclocal.m4 vendored
View File

@ -223,8 +223,10 @@ 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
x86_64-w64-mingw32)
LDFLAGS+=" -Wl,--undefined=__strtod,--wrap,strtod,--defsym,___wrap_strtod=__strtod"
;;
*-*-mingw32)
LDFLAGS+=" -Wl,--undefined=___strtod,--wrap,strtod,--defsym,___wrap_strtod=___strtod"
;;