Skip to content

Fix the sundials dylib references in the macOS package - #52

Merged
tabe merged 1 commit into
masterfrom
fix-dmg-sundials-rpath
Oct 15, 2026
Merged

tabe merged 1 commit into
masterfrom
fix-dmg-sundials-rpath

Conversation

@tabe

@tabe tabe commented Oct 15, 2026

Copy link
Copy Markdown
Member

Fixes #51

Sundials is built with CMake, which sets the dylib install names to @rpath/libsundials_.dylib. The install_name_tool -change commands in the packaging Makefile looked for $(PREFIX)/lib/libsundials_.dylib as the old name, which doesn't match the actual reference. This caused the references to remain as @rpath/libsundials_*.dylib with the rpath pointing to the CI build directory, leading to a crash at launch.

Fix the old name to @rpath/ so the references are correctly rewritten to @executable_path/../Frameworks/.

Sundials is built with CMake, which sets the dylib install names to
@rpath/libsundials_*.dylib. The install_name_tool -change commands in
the packaging Makefile looked for $(PREFIX)/lib/libsundials_*.dylib as
the old name, which doesn't match. Fix the old name to @rpath/ so the
references are correctly rewritten to @executable_path/../Frameworks/.
@tabe
tabe force-pushed the fix-dmg-sundials-rpath branch from 59f7143 to 6ad54bc Compare October 15, 2026 07:05
@tabe
tabe merged commit 0949767 into master Oct 15, 2026
8 checks passed
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.

Flint of .dmg build crashed on macOS

1 participant