summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/t-rex-64-debug-gdb7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/t-rex-64-debug-gdb b/scripts/t-rex-64-debug-gdb
index 1e019407..83ab82e0 100755
--- a/scripts/t-rex-64-debug-gdb
+++ b/scripts/t-rex-64-debug-gdb
@@ -1,4 +1,11 @@
#! /bin/bash
export LD_LIBRARY_PATH=`pwd`
+
+#Add dummy lib in case we don't find it, e.g. there is no OFED installed
+if ldd _t-rex-64 | grep "libibverbs.so" | grep -q "not found"; then
+export LD_LIBRARY_PATH=$PWD:$PWD/dumy_libs
+fi
+
+
/usr/bin/gdb --args ./_t-rex-64-debug $@