Skip to content

Add versioned SONAME candidates for dynamic loading of OpenBLAS - #11

Merged
ajz34 merged 1 commit into
mainfrom
fix-mac-dev
Aug 10, 2026
Merged

Add versioned SONAME candidates for dynamic loading of OpenBLAS#11
ajz34 merged 1 commit into
mainfrom
fix-mac-dev

Conversation

@ajz34

@ajz34 ajz34 commented Aug 10, 2026

Copy link
Copy Markdown
Member

This is to resolve macos linkage of openblas.

…loading

macOS conda/homebrew and many Linux distros ship only the versioned OpenBLAS
file (`libopenblas.0.dylib` / `libopenblas.so.0`) with no unversioned
`libopenblas.dylib` symlink. The dynamic-loading candidate list only contained
unversioned names, so `dlopen` could not find the library even when
DYLD_LIBRARY_PATH / LD_LIBRARY_PATH was set - users had to fall back to the
RSTSR_DYLOAD* env var with an absolute path.

Add the versioned SONAME (`libopenblas.0.dylib` on macOS, `libopenblas.so.0` on
Linux) as a trailing candidate so the loader finds it via the standard search
paths. Tried last, so unversioned names keep priority where they exist.

Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: glm-5.2 <service@zhipuai.cn>
@ajz34
ajz34 merged commit 076026e into main Aug 10, 2026
1 of 2 checks passed
@ajz34
ajz34 deleted the fix-mac-dev branch August 10, 2026 03:24
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.

1 participant