From debc79ef9ad4784258705a92ae70f9c7689a9c24 Mon Sep 17 00:00:00 2001 From: bas smit Date: Tue, 11 May 2021 19:50:30 +0200 Subject: [PATCH] vagrant: dynamic link bcc against llvm When static linking LLVM into bcc we run into issues: ``` : CommandLine Error: Option 'help-list' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options Aborted (core dumped) ``` There might be a smart way to fix this in cmake, maybe just specifying bcc before llvm on the linker cli, but this is easier atm. --- Vagrantfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index e57bb7b592b..4d532799170 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -28,7 +28,8 @@ mkdir -p bcc/build cd bcc/build git checkout v0.19.0 cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local \ - -DENABLE_EXAMPLES=0 -DENABLE_TESTS=0 -DENABLE_MAN=0 + -DENABLE_EXAMPLES=0 -DENABLE_TESTS=0 -DENABLE_MAN=0 \ + -DENABLE_LLVM_SHARED=1 make && sudo make install && sudo ldconfig EOF