Skip to content

Commit bd4ed77

Browse files
author
Stefan Krah
authored
bpo-32233: Fix build with --with-system-libmpdec. (#4739)
1 parent 92a3c6f commit bd4ed77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,6 +2069,7 @@ def _decimal_ext(self):
20692069
'Modules',
20702070
'_decimal',
20712071
'libmpdec'))]
2072+
libraries = ['m']
20722073
sources = [
20732074
'_decimal/_decimal.c',
20742075
'_decimal/libmpdec/basearith.c',
@@ -2164,7 +2165,7 @@ def _decimal_ext(self):
21642165
ext = Extension (
21652166
'_decimal',
21662167
include_dirs=include_dirs,
2167-
libraries=['m'],
2168+
libraries=libraries,
21682169
define_macros=define_macros,
21692170
undef_macros=undef_macros,
21702171
extra_compile_args=extra_compile_args,

0 commit comments

Comments
 (0)