diff options
-rw-r--r-- | data/jamvm/_metadata/name | 1 | ||||
-rw-r--r-- | data/jamvm/_metadata/section | 2 | ||||
-rw-r--r-- | data/jamvm/make.sh | 1 | ||||
-rw-r--r-- | data/jamvm/mdns.diff | 23 |
4 files changed, 26 insertions, 1 deletions
diff --git a/data/jamvm/_metadata/name b/data/jamvm/_metadata/name new file mode 100644 index 000000000..189605d85 --- /dev/null +++ b/data/jamvm/_metadata/name @@ -0,0 +1 @@ +JamVM diff --git a/data/jamvm/_metadata/section b/data/jamvm/_metadata/section index f3d360b1c..bf4484b6c 100644 --- a/data/jamvm/_metadata/section +++ b/data/jamvm/_metadata/section @@ -1 +1 @@ -java +Java diff --git a/data/jamvm/make.sh b/data/jamvm/make.sh index 165b49794..8e9332b11 100644 --- a/data/jamvm/make.sh +++ b/data/jamvm/make.sh @@ -1,5 +1,6 @@ pkg:extract cd * +pkg:patch CFLAGS=-O0 pkg:configure --with-classpath-install-dir=/usr --disable-ffi make pkg:install diff --git a/data/jamvm/mdns.diff b/data/jamvm/mdns.diff new file mode 100644 index 000000000..ff63e8957 --- /dev/null +++ b/data/jamvm/mdns.diff @@ -0,0 +1,23 @@ +diff -ru jamvm-1.5.1/src/jam.c jamvm-1.5.1+iPhone/src/jam.c +--- jamvm-1.5.1/src/jam.c 2007-10-19 01:10:32.000000000 +0000 ++++ jamvm-1.5.1+iPhone/src/jam.c 2008-01-31 08:04:48.000000000 +0000 +@@ -1,3 +1,5 @@ ++#include <mach-o/nlist.h> ++ + /* + * Copyright (C) 2003, 2004, 2005, 2006, 2007 + * Robert Lougher <rob@lougher.org.uk>. +@@ -292,6 +294,13 @@ + } + + int main(int argc, char *argv[]) { ++ struct nlist nl[2]; ++ memset(nl, 0, sizeof(nl)); ++ nl[0].n_un.n_name = "_useMDNSResponder"; ++ nlist("/usr/lib/libc.dylib", nl); ++ if (nl[0].n_type != N_UNDF) ++ *(int *) nl[0].n_value = 0; ++ + Class *array_class, *main_class; + Object *system_loader, *array; + MethodBlock *mb; |