Commit 59f63f8
Bake <prefix>/lib/esys as RPATH into every shared lib and extension
Previously the .so/.dylib files escript installed under lib/esys/
had no RPATH/RUNPATH at all, so users had to set LD_LIBRARY_PATH (or
go through run-escript) for bare `import esys.escript` to work --
fine for MPI-launched runs but a poor experience for the
single-process non-MPI builds that conda-forge ships, and the
conda-build inspector complained about every cross-library NEEDED
entry it couldn't resolve.
Append `-Wl,-rpath,<prefix>/lib/esys` to SHLINKFLAGS and LINKFLAGS
unconditionally on Unix. conda-build picks up the absolute build
prefix in the binary's RUNPATH and rewrites it to $ORIGIN-relative
at install time, so end users on linux/osx can `import esys.escript`
straight from a base conda env.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 7198aa8 commit 59f63f8
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
617 | 628 | | |
618 | 629 | | |
619 | 630 | | |
| |||
0 commit comments