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

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