From 43410b3c86ff4f25b9edefca95eb178253c64649 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 26 May 2020 14:24:56 +0200 Subject: [PATCH] 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. --- development/cpp/custom_modules_in_cpp.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/development/cpp/custom_modules_in_cpp.rst b/development/cpp/custom_modules_in_cpp.rst index 470c9334c..89d8f3458 100644 --- a/development/cpp/custom_modules_in_cpp.rst +++ b/development/cpp/custom_modules_in_cpp.rst @@ -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