From bd4ed77f73d37df325fc8f1e193b3ce6bc08094d Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Wed, 6 Dec 2017 18:24:17 +0100 Subject: [PATCH] bpo-32233: Fix build with --with-system-libmpdec. (#4739) --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c22de17f953..09e35e50609 100644 --- a/setup.py +++ b/setup.py @@ -2069,6 +2069,7 @@ class PyBuildExt(build_ext): 'Modules', '_decimal', 'libmpdec'))] + libraries = ['m'] sources = [ '_decimal/_decimal.c', '_decimal/libmpdec/basearith.c', @@ -2164,7 +2165,7 @@ class PyBuildExt(build_ext): ext = Extension ( '_decimal', include_dirs=include_dirs, - libraries=['m'], + libraries=libraries, define_macros=define_macros, undef_macros=undef_macros, extra_compile_args=extra_compile_args,