diff options
author | Jay Freeman <saurik@saurik.com> | 2008-08-22 09:07:01 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-08-22 09:07:01 +0000 |
commit | b2a7fe61d741f09dce1144a516cfc7bd9ac370ae (patch) | |
tree | 9b7b25be2613afc05edbb7481a7ac011bf2152b2 /data/ruby | |
parent | 32540e3143c052d9c6966533825073cae4ab7f23 (diff) |
Move ruby to private partition and modernize linking APIs.
git-svn-id: http://svn.telesphoreo.org/trunk@439 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/ruby')
-rwxr-xr-x | data/ruby/_metadata/preinst | 3 | ||||
-rw-r--r-- | data/ruby/dlopen.diff | 39 |
2 files changed, 42 insertions, 0 deletions
diff --git a/data/ruby/_metadata/preinst b/data/ruby/_metadata/preinst new file mode 100755 index 000000000..df4971f84 --- /dev/null +++ b/data/ruby/_metadata/preinst @@ -0,0 +1,3 @@ +#!/bin/bash +/usr/libexec/cydia/move.sh /usr/lib/ruby +exit 0 diff --git a/data/ruby/dlopen.diff b/data/ruby/dlopen.diff new file mode 100644 index 000000000..6d745a398 --- /dev/null +++ b/data/ruby/dlopen.diff @@ -0,0 +1,39 @@ +diff -ru ruby-1.8.6-p111/dln.c ruby-1.8.6-p111+iPhone/dln.c +--- ruby-1.8.6-p111/dln.c 2007-08-22 02:46:14.000000000 +0000 ++++ ruby-1.8.6-p111+iPhone/dln.c 2008-07-22 09:22:48.000000000 +0000 +@@ -87,13 +87,13 @@ + + #ifndef NO_DLN_LOAD + +-#if defined(HAVE_DLOPEN) && !defined(USE_DLN_A_OUT) && !defined(_AIX) && !defined(__APPLE__) && !defined(_UNICOSMP) ++#if defined(HAVE_DLOPEN) && !defined(USE_DLN_A_OUT) && !defined(_AIX) && !defined(_UNICOSMP) + /* dynamic load with dlopen() */ + # define USE_DLN_DLOPEN + #endif + + #ifndef FUNCNAME_PATTERN +-# if defined(__hp9000s300) || (defined(__NetBSD__) && !defined(__ELF__)) || defined(__BORLANDC__) || (defined(__FreeBSD__) && !defined(__ELF__)) || (defined(__OpenBSD__) && !defined(__ELF__)) || defined(NeXT) || defined(__WATCOMC__) || defined(__APPLE__) ++# if defined(__hp9000s300) || (defined(__NetBSD__) && !defined(__ELF__)) || defined(__BORLANDC__) || (defined(__FreeBSD__) && !defined(__ELF__)) || (defined(__OpenBSD__) && !defined(__ELF__)) || defined(NeXT) || defined(__WATCOMC__) + # define FUNCNAME_PATTERN "_Init_%s" + # else + # define FUNCNAME_PATTERN "Init_%s" +@@ -1140,10 +1140,6 @@ + #define NSLINKMODULE_OPTION_BINDNOW 1 + #endif + #endif +-#else +-#ifdef __APPLE__ +-#include <mach-o/dyld.h> +-#endif + #endif + + #if defined _WIN32 && !defined __CYGWIN__ +@@ -1403,7 +1399,7 @@ + } + #endif /* _AIX */ + +-#if defined(NeXT) || defined(__APPLE__) ++#if defined(NeXT) + #define DLN_DEFINED + /*---------------------------------------------------- + By SHIROYAMA Takayuki Psi@fortune.nest.or.jp |