summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/fluentbit/fluentbit/0001-fluent-bit-shared-Link-with-lpthread.patch35
-rw-r--r--meta-oe/recipes-extended/fluentbit/fluentbit_0.12.19.bb (renamed from meta-oe/recipes-extended/fluentbit/fluentbit_0.12.1.bb)5
2 files changed, 2 insertions, 38 deletions
diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit/0001-fluent-bit-shared-Link-with-lpthread.patch b/meta-oe/recipes-extended/fluentbit/fluentbit/0001-fluent-bit-shared-Link-with-lpthread.patch
deleted file mode 100644
index e9eed24b32..0000000000
--- a/meta-oe/recipes-extended/fluentbit/fluentbit/0001-fluent-bit-shared-Link-with-lpthread.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From 62fa9bceb15a9d160dd5d624a6d46907c1019c5c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 8 Sep 2017 17:02:55 -0700
4Subject: [PATCH] fluent-bit-shared: Link with -lpthread
5
6This fixes a reference to pthread_atfork in libfluent-bit.so
7otherwise we get undefined reference to the symbols in binaries
8which are linked with libfluent-bit.so
9
10Fixes errors like
11arm-bec-linux-gnueabi-ld: ../../bin/hello_world: hidden symbol `pthread_atfork' in /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/fluentbit/0.12.1-r0/recipe-sysroot/usr/lib/libpthread_nonshared.a(pthread_atfork.oS) is referenced by DSO
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15Upstream-Status: Submitted
16
17 src/CMakeLists.txt | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
21index 425a246..1264e59 100644
22--- a/src/CMakeLists.txt
23+++ b/src/CMakeLists.txt
24@@ -168,7 +168,7 @@ set(FLB_DEPS
25 # Shared Library
26 if(NOT FLB_WITHOUT_SHARED_LIB)
27 add_library(fluent-bit-shared SHARED ${src})
28- target_link_libraries(fluent-bit-shared ${FLB_DEPS})
29+ target_link_libraries(fluent-bit-shared ${FLB_DEPS} -lpthread)
30 set_target_properties(fluent-bit-shared
31 PROPERTIES OUTPUT_NAME fluent-bit)
32
33--
342.14.1
35
diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit_0.12.1.bb b/meta-oe/recipes-extended/fluentbit/fluentbit_0.12.19.bb
index 99f680f9ab..e50aa71a9f 100644
--- a/meta-oe/recipes-extended/fluentbit/fluentbit_0.12.1.bb
+++ b/meta-oe/recipes-extended/fluentbit/fluentbit_0.12.19.bb
@@ -4,10 +4,9 @@ BUGTRACKER = "https://github.com/fluent/fluent-bit/issues"
4 4
5SRC_URI = "http://fluentbit.io/releases/0.12/fluent-bit-${PV}.tar.gz \ 5SRC_URI = "http://fluentbit.io/releases/0.12/fluent-bit-${PV}.tar.gz \
6 file://jemalloc.patch \ 6 file://jemalloc.patch \
7 file://0001-fluent-bit-shared-Link-with-lpthread.patch \
8 " 7 "
9SRC_URI[md5sum] = "6b4472cb7e7213a01425af9121576827" 8SRC_URI[md5sum] = "7c8708312ac9122faacf9e2a4751eb34"
10SRC_URI[sha256sum] = "8ec05365baea723033165687611b3bba3e67a77dce72e282e9f000f7acf9e37b" 9SRC_URI[sha256sum] = "23a81087edf0e2c6f2d49411c6a82308afc5224f67bbaa45729c057af62e9241"
11 10
12S = "${WORKDIR}/fluent-bit-${PV}" 11S = "${WORKDIR}/fluent-bit-${PV}"
13 12