From bef04508f249925bb6e13f741d1ba03f612d7db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Arroyo=20Torrens?= Date: Fri, 24 Feb 2017 10:43:30 +0100 Subject: [PATCH] Fix x86_64-w64-mingw32 build: undefined ___strtod --- aclocal.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aclocal.m4 b/aclocal.m4 index f44632fe2..830553165 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -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" ;;