Tweak LD_LIBRARY_PATH export to work with paths that contain spaces (#3585)

This also uses the `$PWD` environment variable which should always
be defined. It's also minutely faster than calling `$(pwd)` or using
the deprecated backtick syntax.
This commit is contained in:
Hugo Locurcio
2020-05-26 14:24:56 +02:00
committed by GitHub
parent 9539091084
commit 43410b3c86

View File

@@ -434,11 +434,11 @@ library that will be dynamically loaded when starting our game's binary.
Once compiled, we should end up with a ``bin`` directory containing both the
``godot*`` binary and our ``libsummator*.so``. However given the .so is not in
a standard directory (like ``/usr/lib``), we have to help our binary find it
during runtime with the ``LD_LIBRARY_PATH`` environ variable:
during runtime with the ``LD_LIBRARY_PATH`` environment variable:
.. code-block:: shell
export LD_LIBRARY_PATH=`pwd`/bin/
export LD_LIBRARY_PATH="$PWD/bin/"
./bin/godot*
**note**: Pay attention you have to ``export`` the environ variable otherwise