Skip to content

Fix builds on FreeBSD 15 - #1368

Merged
elprans merged 1 commit into
masterfrom
fix-freebsd-build
Sep 21, 2026
Merged

elprans merged 1 commit into
masterfrom
fix-freebsd-build

Conversation

@elprans

@elprans elprans commented Sep 21, 2026

Copy link
Copy Markdown
Member

Cython's thread-safe module state lookup uses the C11 threads API on
CPython 3.12+. FreeBSD provides that API in libstdthreads, so link
against it explicitly.

Fixes: #1334

Cython's thread-safe module state lookup uses the C11 threads API on
CPython 3.12+.  FreeBSD provides that API in libstdthreads, so link
against it explicitly.

Fixes: #1334
Copilot AI lite review requested due to automatic review settings September 21, 2026 06:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Fixes FreeBSD 15 builds by linking extensions against libstdthreads for CPython 3.12+.

Changes:

  • Adds -lstdthreads for FreeBSD builds.
  • Applies the linker flag to compiled extensions.
File Description
setup.py Adds FreeBSD-specific standard threads library linkage.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@elprans
elprans merged commit 87bcaf9 into master Sep 21, 2026
85 of 107 checks passed
@elprans
elprans deleted the fix-freebsd-build branch September 21, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.31.0: Undefined symbol "call_once" on FreeBSD 15

2 participants