summaryrefslogtreecommitdiffstats
path: root/package/beecrypt/beecrypt-icu-check-cross-compile.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-12-14 15:19:20 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2011-12-14 22:54:04 +0100
commit8145105ee348fe560222cb8a244188659d636690 (patch)
tree62ceb163481865f1cc176f7812724a24450ad1e2 /package/beecrypt/beecrypt-icu-check-cross-compile.patch
parent02ad75e9ee750782a8186d6aec8c478528735f1b (diff)
downloadbuildroot-novena-8145105ee348fe560222cb8a244188659d636690.tar.gz
buildroot-novena-8145105ee348fe560222cb8a244188659d636690.zip
beecrypt: bump version, build with C++ support if available
The issue with cppglue.cxx is still present in 4.2.1, but the previous workaround had to be extended to allow builds with C++ support. Similary, the ICU check didn't handle cross compilation. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/beecrypt/beecrypt-icu-check-cross-compile.patch')
-rw-r--r--package/beecrypt/beecrypt-icu-check-cross-compile.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/beecrypt/beecrypt-icu-check-cross-compile.patch b/package/beecrypt/beecrypt-icu-check-cross-compile.patch
new file mode 100644
index 000000000..cc0211650
--- /dev/null
+++ b/package/beecrypt/beecrypt-icu-check-cross-compile.patch
@@ -0,0 +1,31 @@
+configure: Use AC_COMPILE_IFELSE for ICU check for cross compilation compat
+
+AC_RUN_IFELSE doesn't work when cross compiling, but we can do the
+check in the preprocessor instead, so use AC_COMPILE_IFELSE instead.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+Index: beecrypt-4.2.1/configure.ac
+===================================================================
+--- beecrypt-4.2.1.orig/configure.ac
++++ beecrypt-4.2.1/configure.ac
+@@ -295,13 +295,13 @@
+ if test "$ac_with_cplusplus" = yes; then
+ AC_MSG_CHECKING([for IBM's ICU library version >= 2.8])
+ AC_LANG_PUSH(C)
+- AC_RUN_IFELSE([
++ AC_COMPILE_IFELSE([
+ AC_LANG_PROGRAM([[#include <unicode/uversion.h>]],[[
+ #if U_ICU_VERSION_MAJOR_NUM < 2
+- exit(1);
++ #error too old
+ #elif U_ICU_VERSION_MAJOR_NUM == 2
+ # if U_ICU_VERSION_MINOR_NUM < 8
+- exit(1);
++ #error too old
+ # else
+ exit(0);
+ # endif