btoc(m4 macro)'s AC_TRY_RUN didn't handle the cross-compilation case.
  thanks ? for telling me that the third argument
  was for cross-compilation.

Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]>
---
 recipes/fastjar/fastjar-0.98/btowc_eof.patch |   13 +++++++++++++
 recipes/fastjar/fastjar-0.98/wcrtomb.patch   |   13 +++++++++++++
 recipes/fastjar/fastjar_0.98.bb              |    2 ++
 3 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 recipes/fastjar/fastjar-0.98/btowc_eof.patch
 create mode 100644 recipes/fastjar/fastjar-0.98/wcrtomb.patch

diff --git a/recipes/fastjar/fastjar-0.98/btowc_eof.patch 
b/recipes/fastjar/fastjar-0.98/btowc_eof.patch
new file mode 100644
index 0000000..b76e491
--- /dev/null
+++ b/recipes/fastjar/fastjar-0.98/btowc_eof.patch
@@ -0,0 +1,13 @@
+Index: fastjar-0.98/m4/btowc.m4
+===================================================================
+--- fastjar-0.98.orig/m4/btowc.m4
++++ fastjar-0.98/m4/btowc.m4
+@@ -47,7 +47,7 @@ int main ()
+ }],
+             [gl_cv_func_btowc_eof=yes],
+             [gl_cv_func_btowc_eof=no],
+-            [])
++            [gl_cv_func_btowc_eof=yes])
+         fi
+       ])
+     case "$gl_cv_func_btowc_eof" in
diff --git a/recipes/fastjar/fastjar-0.98/wcrtomb.patch 
b/recipes/fastjar/fastjar-0.98/wcrtomb.patch
new file mode 100644
index 0000000..9d3133d
--- /dev/null
+++ b/recipes/fastjar/fastjar-0.98/wcrtomb.patch
@@ -0,0 +1,13 @@
+Index: fastjar-0.98/m4/wcrtomb.m4
+===================================================================
+--- fastjar-0.98.orig/m4/wcrtomb.m4
++++ fastjar-0.98/m4/wcrtomb.m4
+@@ -67,7 +67,7 @@ int main ()
+ }],
+             [gl_cv_func_wcrtomb_retval=yes],
+             [gl_cv_func_wcrtomb_retval=no],
+-            [])
++            [gl_cv_func_wcrtomb_retval=yes])
+         fi
+       ])
+     case "$gl_cv_func_wcrtomb_retval" in
diff --git a/recipes/fastjar/fastjar_0.98.bb b/recipes/fastjar/fastjar_0.98.bb
index 35392f2..76b28e2 100644
--- a/recipes/fastjar/fastjar_0.98.bb
+++ b/recipes/fastjar/fastjar_0.98.bb
@@ -1 +1,3 @@
 require fastjar.inc
+SRC_URI += " file://btowc_eof.patch;patch=1 \
+             file://wcrtomb.patch;patch=1"
-- 
1.6.4.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to