aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-10-25 12:29:17 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-10-25 12:29:44 +0000
commit7901aaada9de9473336772ba54f4a37734f76b6d (patch)
tree3b5189489f9ee02b834b77eb026e1609d4427b54 /main/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch
parent45a3bc8ebaa875b88786682ea94c4fb7f152b1f9 (diff)
downloadaports-7901aaada9de9473336772ba54f4a37734f76b6d.tar.bz2
aports-7901aaada9de9473336772ba54f4a37734f76b6d.tar.xz
testing/freeradius: move to main
Diffstat (limited to 'main/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch')
-rw-r--r--main/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch b/main/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch
new file mode 100644
index 0000000000..e76571a21c
--- /dev/null
+++ b/main/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch
@@ -0,0 +1,33 @@
+From 51cb058c6a9472585622582d16e01c5540627c25 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 13 Oct 2009 12:53:38 +0000
+Subject: [PATCH] Fix detection of TLS for uClibc
+
+On uClibc the configure script will wrongly detect that TLS is
+available. This happends becuase the variable val in the test program
+is optimized away and missing during link time.
+
+This patch make sure that the variable val is not optimized away so
+configure correctly will detect that TLS is missing on uClibc.
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ acinclude.m4 | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/acinclude.m4 b/acinclude.m4
+index 6025474..100e5b0 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -382,7 +382,7 @@ m4_pushdef([AC_OUTPUT],
+ AC_DEFUN([FR_TLS],
+ [
+ AC_MSG_CHECKING(for TLS)
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[ static __thread int val; int main() { return 0; } ]])],[have_tls=yes],[have_tls=no],[have_tls=no ])
++ AC_RUN_IFELSE([AC_LANG_SOURCE([[ static __thread int val; int main(int argc, char *argv[]) { return val = argc; } ]])],[have_tls=yes],[have_tls=no],[have_tls=no ])
+ AC_MSG_RESULT($have_tls)
+ if test "$have_tls" = "yes"; then
+ AC_DEFINE([HAVE_THREAD_TLS],[1],[Define if the compiler supports __thread])
+--
+1.6.4.4
+