[fonttools/fonttools] 2aea9b: [setup.py] Link libm for Cython extensions using m...

0 views
Skip to first unread message

Cosimo Lupo

unread,
Jan 15, 2026, 6:10:25 AM (6 days ago) Jan 15
to fontto...@googlegroups.com
Branch: refs/heads/fix-libm-linkage
Home: https://github.com/fonttools/fonttools
Commit: 2aea9b35748cdbfa0f900f75bb53be44108b42e6
https://github.com/fonttools/fonttools/commit/2aea9b35748cdbfa0f900f75bb53be44108b42e6
Author: Cosimo Lupo <cl...@google.com>
Date: 2026-01-15 (Thu, 15 Jan 2026)

Changed paths:
M setup.py

Log Message:
-----------
[setup.py] Link libm for Cython extensions using math functions (#4028)

On some Linux systems (e.g., Amazon Linux 2023 with aarch64 and Clang),
math functions like sqrt, pow, fabs require explicit linkage to libm.
Add libraries=["m"] to the four affected extensions on POSIX systems:
- fontTools.cu2qu.cu2qu
- fontTools.qu2cu.qu2cu
- fontTools.misc.bezierTools
- fontTools.pens.momentsPen

Fixes #4028



To unsubscribe from these emails, change your notification settings at https://github.com/fonttools/fonttools/settings/notifications

Cosimo Lupo

unread,
Jan 15, 2026, 6:21:09 AM (6 days ago) Jan 15
to fontto...@googlegroups.com
Branch: refs/heads/main
Home: https://github.com/fonttools/fonttools
Commit: 2aea9b35748cdbfa0f900f75bb53be44108b42e6
https://github.com/fonttools/fonttools/commit/2aea9b35748cdbfa0f900f75bb53be44108b42e6
Author: Cosimo Lupo <cl...@google.com>
Date: 2026-01-15 (Thu, 15 Jan 2026)

Changed paths:
M setup.py

Log Message:
-----------
[setup.py] Link libm for Cython extensions using math functions (#4028)

On some Linux systems (e.g., Amazon Linux 2023 with aarch64 and Clang),
math functions like sqrt, pow, fabs require explicit linkage to libm.
Add libraries=["m"] to the four affected extensions on POSIX systems:
- fontTools.cu2qu.cu2qu
- fontTools.qu2cu.qu2cu
- fontTools.misc.bezierTools
- fontTools.pens.momentsPen

Fixes #4028


Commit: 5716f2c41ad1ec0dd4b374b3e7433d8f69310b01
https://github.com/fonttools/fonttools/commit/5716f2c41ad1ec0dd4b374b3e7433d8f69310b01
Author: Cosimo Lupo <cos...@anthrotype.com>
Date: 2026-01-15 (Thu, 15 Jan 2026)

Changed paths:
M setup.py

Log Message:
-----------
Merge pull request #4029 from fonttools/fix-libm-linkage

[setup.py] Link libm for Cython extensions using math functions (#4028)


Compare: https://github.com/fonttools/fonttools/compare/90508af3a673...5716f2c41ad1
Reply all
Reply to author
Forward
0 new messages