astral-sh / astral-sh/python-build-standalone
RPATH of libtcl and libtk shared objects is /tools/deps/lib
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 314
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 27
Description
At the moment these shared libraries have an RPATH set to `/tools/deps/lib`:
```
$ objdump -x lib/libtcl8.6.so | grep RPATH
RPATH /tools/deps/lib
$ objdump -x lib/libtk8.6.so | grep RPATH
RPATH /tools/deps/lib:/tools/deps/lib
```
This doesn't seem correct, should we be avoiding adding an RPATH line or setting it relative to `$ORIGIN` or something?
I understand this has happened probably as a result of #676, but I'm not fully aware of the implications of this.
I can see that the Python binary has a `$ORIGIN` relative RPATH to load these shared libraries (which seems correct and intentional):
```
$ objdump -x bin/python3.13 | grep -i rpath
RPATH $ORIGIN/../lib
Contributor guide
Assessment
This issue has not been assessed yet.