diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch')
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch b/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch new file mode 100644 index 000000000..30497a602 --- /dev/null +++ b/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Subject: [PATCH] configure.ac: allow cross-compilation | ||
2 | |||
3 | The checking OpenSSL library and header version consistency will | ||
4 | always fail in cross compiling, skip the check and give a warning | ||
5 | instead for cross compiling. | ||
6 | |||
7 | Upstream-Status: Inappropriate[embedded specific] | ||
8 | |||
9 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
10 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
11 | --- | ||
12 | src/modules/rlm_krb5/configure.ac | 3 ++- | ||
13 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/src/modules/rlm_krb5/configure.ac b/src/modules/rlm_krb5/configure.ac | ||
16 | index eb43534..113a079 100644 | ||
17 | --- a/src/modules/rlm_krb5/configure.ac | ||
18 | +++ b/src/modules/rlm_krb5/configure.ac | ||
19 | @@ -137,7 +137,8 @@ if test x$with_[]modname != xno; then | ||
20 | FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe) | ||
21 | if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" == xyes; then | ||
22 | AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])], | ||
23 | - [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])]) | ||
24 | + [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])], | ||
25 | + [AC_MSG_WARN(cross compiling: not checking)]) | ||
26 | fi | ||
27 | else | ||
28 | krb5threadsafe="" | ||
29 | -- | ||
30 | 2.10.2 | ||
31 | |||