Open sudachen opened 3 years ago
Please could you describe a test case for linux for this, because in CI I don't see such a problem.
hi @avive! could you please respond to @AndrewAR2's question above? is this issue still topical?
The case is to try to launch the testapp from a release. If you don't add its path to LD_LIBRARY_PATH env var. e.g. via export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
then the app won't find the lib which is in the same directory. For more info see the instructions we currently give to users: https://product.spacemesh.io/#/join_devnet
Please include the version and Linux distribution you are using so that I can reproduce the problem. This issue does not reproduce on CI, macOS, Debian 10, or Ubuntu 20.04.
Since gpu-setup-test is linked without rpath hints it does not use executable's folder to find shared libaries. To fix this it's enough to add
-Wl,rpath,\$ORIGIN
in link flags for linux/OSX targets.