From 55b05163a9cf09f631b994bab65769ccc943e028 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 7 Jan 2017 21:17:18 +0100 Subject: [PATCH] Add comment to explain -rpath linker option. This resolves a TODO. --- buildenv.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildenv.sh b/buildenv.sh index 925a772..ebcb561 100644 --- a/buildenv.sh +++ b/buildenv.sh @@ -31,7 +31,9 @@ if [ $(uname) = "Darwin" ]; then MACOSX_DEPLOYMENT_TARGET=10.7 export LDFLAGS MACOSX_DEPLOYMENT_TARGET else - # TODO: explain what this does + # Include $INSTALL_DIR/lib in the list of paths that is searched + # when looking for DLLs. This allows built binaries to be run + # without needing to set LD_LIBRARY_PATH every time. LDFLAGS="-Wl,-rpath -Wl,$INSTALL_DIR/lib ${LDFLAGS:-}" export LDFLAGS fi