diff --git a/Makefile b/Makefile index 3750bdf78e7..a11f9dba1e2 100644 --- a/Makefile +++ b/Makefile @@ -410,7 +410,7 @@ LDFLAGS += -pthread endif ifeq ($(SYSTEM),MINGW32) -LIBS = m pthread ws2_32 +LIBS = m pthread ws2_32 dbghelp LDFLAGS += -pthread endif diff --git a/setup.py b/setup.py index c0ca62637c3..a1562c76a87 100644 --- a/setup.py +++ b/setup.py @@ -241,7 +241,7 @@ if "linux" in sys.platform: if not "win32" in sys.platform: EXTENSION_LIBRARIES += ('m',) if "win32" in sys.platform: - EXTENSION_LIBRARIES += ('advapi32', 'ws2_32',) + EXTENSION_LIBRARIES += ('advapi32', 'ws2_32', 'dbghelp',) if BUILD_WITH_SYSTEM_OPENSSL: EXTENSION_LIBRARIES += ('ssl', 'crypto',) if BUILD_WITH_SYSTEM_ZLIB: diff --git a/templates/Makefile.template b/templates/Makefile.template index 7fae035c1e4..815fac1ac5c 100644 --- a/templates/Makefile.template +++ b/templates/Makefile.template @@ -274,7 +274,7 @@ endif ifeq ($(SYSTEM),MINGW32) - LIBS = m pthread ws2_32 + LIBS = m pthread ws2_32 dbghelp LDFLAGS += -pthread endif