summaryrefslogtreecommitdiffstats
path: root/tests/set-rpath.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/set-rpath.sh')
-rwxr-xr-xtests/set-rpath.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/set-rpath.sh b/tests/set-rpath.sh
index cbe1006..b71e0f4 100755
--- a/tests/set-rpath.sh
+++ b/tests/set-rpath.sh
@@ -21,6 +21,10 @@ if test -z "$oldRPath"; then oldRPath="/oops"; fi
#if test -z "$oldRPath"; then oldRPath="/oops"; fi
#../src/patchelf --set-rpath $oldRPath:$(pwd)/scratch/libsC scratch/libsB/libbar.so
+if test "$(uname)" = FreeBSD; then
+ export LD_LIBRARY_PATH=$(pwd)/scratch/libsB
+fi
+
exitCode=0
cd scratch && ./main || exitCode=$?