[swift-users] Dynamic linker DT_RPATH

Ugo Arangino swift at ua94.de
Fri Dec 4 20:37:30 CST 2015


Why is the Dynamic linker DT_RPATH set, instead of configure it like this `/etc/ld.so.conf.d/swift.conf` or copying the libraries to a appropriate place?

If I install Swift for Linux on different systems in different directories I can’t run the same binary.

The swift linux shared objects path ist hardcoded.
> objdump -p Hello 
Dynamic Section
  NEEDED               libswiftCore.so
...
  RPATH                /opt/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10/usr/lib/swift/linux
...


More information about the swift-users mailing list