summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/syslog-ng/files/configure.ac-add-option-enable-thread-tls-to-manage-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng/files/configure.ac-add-option-enable-thread-tls-to-manage-.patch')
-rw-r--r--meta-oe/recipes-support/syslog-ng/files/configure.ac-add-option-enable-thread-tls-to-manage-.patch52
1 files changed, 34 insertions, 18 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/files/configure.ac-add-option-enable-thread-tls-to-manage-.patch b/meta-oe/recipes-support/syslog-ng/files/configure.ac-add-option-enable-thread-tls-to-manage-.patch
index 4f8a3d0775..ff35fb157c 100644
--- a/meta-oe/recipes-support/syslog-ng/files/configure.ac-add-option-enable-thread-tls-to-manage-.patch
+++ b/meta-oe/recipes-support/syslog-ng/files/configure.ac-add-option-enable-thread-tls-to-manage-.patch
@@ -1,30 +1,46 @@
1configure.ac: add option --enable-thread-tls to manage thread ssl support 1From 15a90fd9ac1396015340e599e26d7cd193898fb8 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 12 Aug 2014 14:26:13 +0800
4Subject: [PATCH] configure.ac: add option --enable-thread-tls to manage thread
5 ssl support
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
2 9
10The thread local storage caused arm-gcc broken while compiling │
11syslog-ng with option '-g -O'. │
12... │
13dnscache.s: Assembler messages: │
14dnscache.s:100: Error: invalid operands (.text and *UND* sections) for `-' │
15... │
16
3Add option --enable-thread-tls to manage the including of thread 17Add option --enable-thread-tls to manage the including of thread
4local storage, so we could explicitly disable it. 18local storage, so we could explicitly disable it.
5 19
6Upstream-Status: Pending
7
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 20Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
21
22change default to 'yes'
23Upstream-Status: Submitted [https://github.com/syslog-ng/syslog-ng/pull/3649]
24
25Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
9--- 26---
10 configure.ac | 17 +++++++++++------ 27 configure.ac | 16 ++++++++++------
11 1 file changed, 11 insertions(+), 6 deletions(-) 28 1 file changed, 10 insertions(+), 6 deletions(-)
12 29
13Index: syslog-ng-3.15.1/configure.ac 30diff --git a/configure.ac b/configure.ac
14=================================================================== 31index 1d67e81..7aad75f 100644
15--- syslog-ng-3.15.1.orig/configure.ac 32--- a/configure.ac
16+++ syslog-ng-3.15.1/configure.ac 33+++ b/configure.ac
17@@ -190,6 +190,9 @@ AC_ARG_ENABLE(gprof, 34@@ -210,6 +210,8 @@ AC_ARG_WITH(sanitizer,
18 AC_ARG_ENABLE(memtrace, 35 [ --with-sanitizer=[address/undefined/etc...]
19 [ --enable-memtrace Enable alternative leak debugging code.]) 36 Enables compiler sanitizer supports (default: no)]
20 37 ,,with_sanitizer="no")
21+AC_ARG_ENABLE(thread-tls, 38+AC_ARG_ENABLE(thread-tls,
22+ [ --enable-thread-tls Enable Thread Local Storage support.],,enable_thread_tls="no") 39+ [ --enable-thread-tls Enable Thread Local Storage support (default: yes)],,enable_thread_tls="yes")
23+ 40
24 AC_ARG_ENABLE(dynamic-linking, 41 AC_ARG_ENABLE(dynamic-linking,
25 [ --enable-dynamic-linking Link everything dynamically.],,enable_dynamic_linking="auto") 42 [ --enable-dynamic-linking Link everything dynamically.],,enable_dynamic_linking="auto")
26 43@@ -628,12 +630,14 @@ dnl ***************************************************************************
27@@ -591,12 +594,14 @@ dnl ***************************************************************************
28 dnl Is the __thread keyword available? 44 dnl Is the __thread keyword available?
29 dnl *************************************************************************** 45 dnl ***************************************************************************
30 46
@@ -34,7 +50,7 @@ Index: syslog-ng-3.15.1/configure.ac
34-]], 50-]],
35-[a=0;])], 51-[a=0;])],
36-[ac_cv_have_tls=yes; AC_DEFINE_UNQUOTED(HAVE_THREAD_KEYWORD, 1, "Whether Thread Local Storage is supported by the system")]) 52-[ac_cv_have_tls=yes; AC_DEFINE_UNQUOTED(HAVE_THREAD_KEYWORD, 1, "Whether Thread Local Storage is supported by the system")])
37+if test "x$enable_thread_tls" != "xno"; then 53+if test "x$enable_thread_tls" = "xyes"; then
38+ AC_LINK_IFELSE([AC_LANG_PROGRAM( 54+ AC_LINK_IFELSE([AC_LANG_PROGRAM(
39+ [[#include <pthread.h> 55+ [[#include <pthread.h>
40+ __thread int a; 56+ __thread int a;