about summary refs log tree commit diff homepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorGerben Oolbekkink <g.j.w.oolbekkink@gmail.com>2019-04-05 10:03:32 +0200
committerMartinNowack <martin.nowack@gmail.com>2019-04-08 11:00:31 +0100
commit91e9b418a97af0dd25c868bf5e6392d5e98405c9 (patch)
tree44c5b52e363f5117d8035e9cd8842c74a7a2bfd4 /Dockerfile
parentd7598978d09de50a5bf20c91ed5a9429404e9b1c (diff)
downloadklee-91e9b418a97af0dd25c868bf5e6392d5e98405c9.tar.gz
Add LD_LIBRARY_PATH to docker image
Fixes #1080. The proper LD_LIBRARY_PATH is required when binaries linked
with kleeRuntest are run.

The STP line is changed to extend the library path instead of replace
it, I am not sure if it can be removed at this moment.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 16b25b52..97708b53 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -51,9 +51,10 @@ ADD --chown=klee:klee / ${BASE}/klee_src
 
 USER klee
 WORKDIR /home/klee
+ENV LD_LIBRARY_PATH /home/klee/klee_build/lib/
 
 # Add KLEE binary directory to PATH
 RUN /bin/bash -c 'ln -s ${BASE}/klee_src /home/klee/ && ln -s ${BASE}/klee_build* /home/klee/klee_build && echo "export PATH=\"$PATH:$(cd /tmp/llvm-*install*/bin && pwd):/home/klee/klee_build/bin\"" >> /home/klee/.bashrc'
 
 # TODO Remove when STP is fixed
-RUN /bin/bash -c 'echo "export LD_LIBRARY_PATH=$(cd ${BASE}/metaSMT-*-deps/stp-git-basic/lib/ && pwd)" >> /home/klee/.bashrc'
+RUN /bin/bash -c 'echo "export LD_LIBRARY_PATH=$(cd ${BASE}/metaSMT-*-deps/stp-git-basic/lib/ && pwd):$LD_LIBRARY_PATH" >> /home/klee/.bashrc'