overlay/dev-libs/libffi/files/libffi-3.0.9-define_target-1.patch

33 lines
1019 B
Diff
Raw Normal View History

Submitted By: Your Name (your at email dot address)
Date: 2010-09-25
Initial Package Version: 3.0.9
Origin: http://osdir.com/ml/java.openjdk.distro-packaging.devel/2008-07/msg00150.html
Upstream Status: unknown
Description: There is a quick fix to make libffi compatible with the icedtea build system
edit the file /usr/lib/libffi-3.0.9/ffi.h and change the line about one page from the top
from
/* Specify wich architecture libffi is configures for. */
#define ARM
to
/* Specify wich architecture libffi is configures for. */
#ifndef ARM
#define ARM
#endif
then it should work!
diff -Naur libffi-3.0.9.orig/include/ffi.h.in libffi-3.0.9/include/ffi.h.in
--- libffi-3.0.9.orig/include/ffi.h.in 2009-12-29 15:22:26.000000000 +0000
+++ libffi-3.0.9/include/ffi.h.in 2010-09-25 16:02:04.965551063 +0000
@@ -57,7 +57,9 @@
#endif
/* Specify which architecture libffi is configured for. */
+#ifndef @TARGET@
#define @TARGET@
+#endif
/* ---- System configuration information --------------------------------- */