--- src/fpu.cpp	2008-05-10 08:25:19.000000000 +0900
+++ src/fpu.cpp	2012-06-08 14:50:46.276453256 +0900
@@ -14,6 +14,15 @@
 #include "config.h"
 #include <qd/fpu.h>
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+unsigned int _controlfp (unsigned int unNew, unsigned int unMask);
+unsigned int _control87 (unsigned int unNew, unsigned int unMask);
+#ifdef  __cplusplus
+}
+#endif
+
 #ifdef X86
 #ifdef  _WIN32
 #include <float.h>
--- configure.ac~	2021-08-13 20:30:49.000000000 +0900
+++ configure.ac	2022-07-12 23:29:49.328237289 +0900
@@ -5,6 +5,7 @@
 AC_INIT([qd],[2.3.QD_PATCH_VERSION],[dhbailey@lbl.gov])
 AC_CONFIG_SRCDIR([src/qd_real.cpp])
 AC_CONFIG_MACRO_DIR([m4])
+LT_INIT([win32-dll])
 
 PACKAGE="qd"
 MAJOR_VERSION="2"
--- src/Makefile.am~	2018-10-31 01:05:02.000000000 +0900
+++ src/Makefile.am	2022-07-12 23:44:12.727600576 +0900
@@ -5,5 +5,7 @@
 
 libqd_la_SOURCES = $(SRC)
 
+libqd_la_LDFLAGS = -no-undefined
+
 AM_CPPFLAGS = -I$(top_builddir) -I$(top_builddir)/include -I$(top_srcdir)/include
 
