Commit bd4ed77f authored by Stefan Krah's avatar Stefan Krah Committed by GitHub

bpo-32233: Fix build with --with-system-libmpdec. (#4739)

parent 92a3c6f4
...@@ -2069,6 +2069,7 @@ class PyBuildExt(build_ext): ...@@ -2069,6 +2069,7 @@ class PyBuildExt(build_ext):
'Modules', 'Modules',
'_decimal', '_decimal',
'libmpdec'))] 'libmpdec'))]
libraries = ['m']
sources = [ sources = [
'_decimal/_decimal.c', '_decimal/_decimal.c',
'_decimal/libmpdec/basearith.c', '_decimal/libmpdec/basearith.c',
...@@ -2164,7 +2165,7 @@ class PyBuildExt(build_ext): ...@@ -2164,7 +2165,7 @@ class PyBuildExt(build_ext):
ext = Extension ( ext = Extension (
'_decimal', '_decimal',
include_dirs=include_dirs, include_dirs=include_dirs,
libraries=['m'], libraries=libraries,
define_macros=define_macros, define_macros=define_macros,
undef_macros=undef_macros, undef_macros=undef_macros,
extra_compile_args=extra_compile_args, extra_compile_args=extra_compile_args,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment