hhyyrylainen / Leviathan

Leviathan Game Engine
Other
17 stars 8 forks source link

Resolve the RPATH situation #35

Open hhyyrylainen opened 5 years ago

hhyyrylainen commented 5 years ago

I fixed linking with ld.gold by adding -Wl,--disable-new-dtags which is not optimal.

This should be somehow properly resolved.

The temporary fix was done in this commit: https://github.com/hhyyrylainen/Leviathan/commit/a6a0cb4872b6341173f2f1b4fce6f70aa95ade00

Some links: http://blog.qt.io/blog/2011/10/28/rpath-and-runpath/ https://github.com/chros73/rtorrent-ps-ch/issues/93 http://manpages.ubuntu.com/manpages/trusty/man1/ld.gold.1.html https://medium.com/square-corner-blog/building-portable-binaries-50ca4f3d75cd http://man7.org/linux/man-pages/man8/ld.so.8.html https://stackoverflow.com/questions/26281813/what-is-ld-runpath https://wiki.debian.org/RpathIssue https://stackoverflow.com/questions/7967848/use-rpath-but-not-runpath (seems to say that using RPATH is fine when bundling dependencies, which is done here) https://amir.rachum.com/blog/2016/09/17/shared-libraries/ https://stackoverflow.com/questions/17450573/how-to-actually-change-set-environment-variables-from-within-emacs

Changing linkers is done with sudo alternatives --config ld