summaryrefslogtreecommitdiff
path: root/data/jamvm
diff options
context:
space:
mode:
Diffstat (limited to 'data/jamvm')
-rw-r--r--data/jamvm/libffi.diff17
-rw-r--r--data/jamvm/make.sh3
2 files changed, 19 insertions, 1 deletions
diff --git a/data/jamvm/libffi.diff b/data/jamvm/libffi.diff
new file mode 100644
index 000000000..ced02134d
--- /dev/null
+++ b/data/jamvm/libffi.diff
@@ -0,0 +1,17 @@
+diff -ru jamvm-1.5.1/configure.ac jamvm-1.5.1+iPhone/configure.ac
+--- jamvm-1.5.1/configure.ac 2007-12-16 04:05:21.000000000 +0000
++++ jamvm-1.5.1+iPhone/configure.ac 2008-03-01 05:16:44.000000000 +0000
+@@ -238,10 +238,9 @@
+ enable_zip=no
+ fi])
+
+-AC_CHECK_LIB(ffi,ffi_call,,
+- [if test "$enable_ffi" != no; then
+- AC_MSG_ERROR(cannot find libffi)
+- fi])
++if test "$enable_ffi" != no; then
++ AC_CHECK_LIB(ffi,ffi_call,,AC_MSG_ERROR(cannot find libffi))
++fi
+
+ dnl Checks for header files.
+ AC_HEADER_STDC
diff --git a/data/jamvm/make.sh b/data/jamvm/make.sh
index 8e9332b11..117fc4093 100644
--- a/data/jamvm/make.sh
+++ b/data/jamvm/make.sh
@@ -1,7 +1,8 @@
pkg:extract
cd *
pkg:patch
-CFLAGS=-O0 pkg:configure --with-classpath-install-dir=/usr --disable-ffi
+autoconf
+CFLAGS=-O0 pkg:configure --with-classpath-install-dir=/usr --enable-ffi=no
make
pkg:install
pkg: rm -rf /usr/include