bcc/0001-set-SOVERSION-for-bpf-shared.patch
Rafael Santos 47a11ce76f - Resolves #1460482 - rebase to new release
- Resolves #1505506 - add support for LLVM 5.0
- Resolves #1460482 - BPF module compilation issue
- Partially address #1479990 - location of man pages
- Enable ppc64(le) support without lua
- Soname versioning for libbpf by ignatenkobrain
2017-10-27 00:21:51 +02:00

26 lines
931 B
Diff

From 56f7d9aa223d9123174f6eec9683111f063794fc Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date: Wed, 1 Nov 2017 08:07:10 +0100
Subject: [PATCH] set SOVERSION for bpf-shared
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
src/cc/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cc/CMakeLists.txt b/src/cc/CMakeLists.txt
index c31936e..b552f45 100644
--- a/src/cc/CMakeLists.txt
+++ b/src/cc/CMakeLists.txt
@@ -25,6 +25,7 @@ include(static_libstdc++)
add_library(bpf-static STATIC libbpf.c perf_reader.c)
set_target_properties(bpf-static PROPERTIES OUTPUT_NAME bpf)
add_library(bpf-shared SHARED libbpf.c perf_reader.c)
+set_target_properties(bpf-shared PROPERTIES VERSION ${REVISION_LAST} SOVERSION 0)
set_target_properties(bpf-shared PROPERTIES OUTPUT_NAME bpf)
set(bcc_common_sources bpf_common.cc bpf_module.cc exported_files.cc)
--
2.14.3