ID:2870002
 
Applies to:DreamDaemon, DreamMaker and DreamDownload
Status: Open

Issue hasn't been assigned a status value.
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).