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

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