diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-13 14:07:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-13 14:07:23 +0000 |
commit | f7712d880d1957876a7a33e63ae75f288c37ca05 (patch) | |
tree | a634d9db83977eea7cf8929e7a43b6efd950736f /testing/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch | |
parent | 19c14941f5b586b27853092cc04ce4480062c9b3 (diff) | |
download | aports-f7712d880d1957876a7a33e63ae75f288c37ca05.tar.bz2 aports-f7712d880d1957876a7a33e63ae75f288c37ca05.tar.xz |
testing/freeradius: new aport (moved from unstable)
RADIUS (Remote Authentication Dial-In User Service) server
http://freeradius.org/
Diffstat (limited to 'testing/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch')
-rw-r--r-- | testing/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch b/testing/freeradius/0001-Fix-detection-of-TLS-for-uClibc.patch new file mode 100644 index 000000000..e76571a21 --- /dev/null +++ b/testing/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 + |