Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS requires setting of RPATH in executable solver #142

Open
paspro opened this issue Jan 22, 2025 · 0 comments
Open

macOS requires setting of RPATH in executable solver #142

paspro opened this issue Jan 22, 2025 · 0 comments

Comments

@paspro
Copy link
Contributor

paspro commented Jan 22, 2025

On macOS, and I suppose other BSD systems, one has to specify the RPATH for any third-party library used during the building of the solver because these libraries may be installed in various non-standard locations e.g. when using the Spack package manager to build the third-party libraries for code_saturne. In order to make this work I modified file python/code_saturne/base/cs_case_domain.py so that after the building of the solver is completed the code calls the install_name_tool utility that macOS has to add the required RPATHs to the executable.

The modification is changing the code starting from line 1007 checking if the platform is macOS and then calling this utility for each library path needed (only unique values should be used).

The modified file is attached to this issue report and it works properly on my system.

cs_case_domain.py.zip

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

No branches or pull requests

1 participant