Skip to content

ci: enforce static linking for Windows release binaries#1257

Open
ijatinydv wants to merge 2 commits intofortran-lang:mainfrom
ijatinydv:ci/1204-windows-static-linking
Open

ci: enforce static linking for Windows release binaries#1257
ijatinydv wants to merge 2 commits intofortran-lang:mainfrom
ijatinydv:ci/1204-windows-static-linking

Conversation

@ijatinydv
Copy link
Copy Markdown

This PR adds defensive CI checks and documentation to prevent the Windows DLL threading model mismatches reported in #1204.
While the root cause of this is a missing --static flag in the downstream conda-forge packaging, we should ensure our upstream release artifacts stay self-contained and our downstream packaging guidelines are explicitly clear to prevent distributors from making this mistake in the future.

Changes:

  • Added ci/verify_static_linking.sh to parse PE headers via objdump and fail if dynamic GCC runtime dependencies (libgfortran, libgcc, etc.) are detected.
  • Integrated this check into the Windows build jobs in release.yml to prevent regressions.
  • Added a section to PACKAGING.md documenting the --static requirement for downstream Windows distributors (conda, MSYS2, Spack, etc.).

closes #1204

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.

[Windows] Issue with "__gthr_win32_create"

1 participant