1 Star 0 Fork 6

lauk/polycube

forked from src-openEuler/polycube 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-Bcc-static-linked-at-compile-time-for-Polycubed-alre.patch 965 Bytes
一键复制 编辑 原始数据 按行查看 历史
L.X. 提交于 2020-10-21 11:03 . fix some runtime bugs
From 93a4722e17ab4c8d34d8f5f9be6633f77429f040 Mon Sep 17 00:00:00 2001
From: bitcoffee <854182924@qq.com>
Date: Thu, 24 Sep 2020 15:35:06 +0800
Subject: [PATCH] Bcc-static linked at compile time for Polycubed already
includes the LLVM static library.At runtime polycubed links clang again,
clang links the dynamic library of LLVM, causing LLVM to report error:
"Option XXXXXX registered more than once"
---
src/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d3b985e..4b71f68 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,6 +4,7 @@ include_directories(${CMAKE_SOURCE_DIR}/src/libs/bcc/src/cc/libbpf/include/uapi)
option(INSTALL_CLI "installs the polycube CLI" ON)
option(ENABLE_PCN_IPTABLES "enables the pcn-iptables" OFF)
+option(ENABLE_LLVM_SHARED "Enable linking LLVM as a shared library" ON)
add_subdirectory(components)
add_subdirectory(libs)
--
2.20.1.windows.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lauk001/polycube.git
git@gitee.com:lauk001/polycube.git
lauk001
polycube
polycube
master

搜索帮助