Skip to content

Commit 0f4bece

Browse files
committed
Link to m from _imagingmath, except on Windows
1 parent e2b87a0 commit 0f4bece

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,11 @@ def debug_build() -> bool:
10891089
Extension("PIL._webp", ["src/_webp.c"]),
10901090
Extension("PIL._avif", ["src/_avif.c"]),
10911091
Extension("PIL._imagingtk", ["src/_imagingtk.c", "src/Tk/tkImaging.c"]),
1092-
Extension("PIL._imagingmath", ["src/_imagingmath.c"]),
1092+
Extension(
1093+
"PIL._imagingmath",
1094+
["src/_imagingmath.c"],
1095+
libraries=None if sys.platform == "win32" else ["m"],
1096+
),
10931097
Extension("PIL._imagingmorph", ["src/_imagingmorph.c"]),
10941098
]
10951099

0 commit comments

Comments
 (0)