Runpath is a field on linux binary files which lets the system know where to find libraries that the executable will need. Theres a special "$ORIGIN" value which you can set which equates to the directory the executable resides in.
This would allow to execute DreamDaemon, DreamMaker and DreamDownload without having to have LD_LIBRARY_PATH set when byond is not installed system wide.
I have tested this with the 'patchelf --set-rpath '$ORIGIN' DreamDaemon' command and it seems to work fine (despite the argument name, this sets runpath, not rpath).
On GCC, you'd set runpath by using the follow argument: '-Wl,--enable-new-dtags,-rpath=$ORIGIN' (This however, I have not tested).
ID:2870002
May 15 2023, 11:32 am
|
|||||||
| |||||||