Blame SOURCES/link-against-libLLVM.so-instead-of-static-libs.patch

f282d1
From ddbdaef40b7db8259f7728a64839b9ff38fbfd76 Mon Sep 17 00:00:00 2001
f282d1
From: Jerome Marchand <jmarchan@redhat.com>
f282d1
Date: Fri, 15 Jun 2018 11:41:47 +0200
f282d1
Subject: [PATCH] Link against libLLVM.so instead of static libs
f282d1
f282d1
---
f282d1
 src/cc/CMakeLists.txt | 4 ++--
f282d1
 1 file changed, 2 insertions(+), 2 deletions(-)
f282d1
f282d1
diff --git a/src/cc/CMakeLists.txt b/src/cc/CMakeLists.txt
f282d1
index 8ddfd8f..0c3d7df 100644
f282d1
--- a/src/cc/CMakeLists.txt
f282d1
+++ b/src/cc/CMakeLists.txt
f282d1
@@ -62,11 +62,11 @@ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${llvm_lib_exclude_f
f282d1
 # bcc_common_libs_for_a for archive libraries
f282d1
 # bcc_common_libs_for_s for shared libraries
f282d1
 set(bcc_common_libs_for_a b_frontend clang_frontend bpf-static
f282d1
-  -Wl,--whole-archive ${clang_libs} ${llvm_libs} -Wl,--no-whole-archive
f282d1
+  -Wl,--whole-archive ${clang_libs} libLLVM-6.0-rhel.so -Wl,--no-whole-archive
f282d1
   ${LIBELF_LIBRARIES})
f282d1
 set(bcc_common_libs_for_s ${bcc_common_libs_for_a})
f282d1
 set(bcc_common_libs_for_lua b_frontend clang_frontend bpf-static
f282d1
-  ${clang_libs} ${llvm_libs} ${LIBELF_LIBRARIES})
f282d1
+  ${clang_libs} libLLVM-6.0-rhel.so ${LIBELF_LIBRARIES})
f282d1
 
f282d1
 if(ENABLE_CPP_API)
f282d1
   add_subdirectory(api)
f282d1
-- 
f282d1
2.17.1
f282d1