summaryrefslogtreecommitdiff
path: root/data/python/dylib.diff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-01-09 22:21:43 +0000
committerJay Freeman <saurik@saurik.com>2008-01-09 22:21:43 +0000
commit35ef70353227e4dff60fc36437f08293be752b25 (patch)
tree806d29fe3d68433a1c971336dff58863918b2709 /data/python/dylib.diff
parent03880b546d794abafd6dab3eed876dbefe06c174 (diff)
Factored out --enable-{static=no,shared=yes}, did some extreme porting on pkg-config and libtool, added support for numerous X libraries and a few X applications, and got a solid build of Python with a bunch of modules (compiled as a shared library with the right extensions ;P).
git-svn-id: http://svn.telesphoreo.org/trunk@12 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/python/dylib.diff')
-rw-r--r--data/python/dylib.diff33
1 files changed, 33 insertions, 0 deletions
diff --git a/data/python/dylib.diff b/data/python/dylib.diff
new file mode 100644
index 000000000..979925d4a
--- /dev/null
+++ b/data/python/dylib.diff
@@ -0,0 +1,33 @@
+diff -ru Python-2.5.1/Python/dynload_shlib.c Python-2.5.1+iPhone/Python/dynload_shlib.c
+--- Python-2.5.1/Python/dynload_shlib.c 2006-01-04 01:30:17.000000000 +0000
++++ Python-2.5.1+iPhone/Python/dynload_shlib.c 2008-01-09 10:04:49.000000000 +0000
+@@ -40,11 +40,14 @@
+ {".pyd", "rb", C_EXTENSION},
+ {".dll", "rb", C_EXTENSION},
+ #else
+-#ifdef __VMS
++#if defined(__VMS)
+ {".exe", "rb", C_EXTENSION},
+ {".EXE", "rb", C_EXTENSION},
+ {"module.exe", "rb", C_EXTENSION},
+ {"MODULE.EXE", "rb", C_EXTENSION},
++#elif defined(__APPLE__)
++ {".dylib", "rb", C_EXTENSION},
++ {"module.dylib", "rb", C_EXTENSION},
+ #else
+ {".so", "rb", C_EXTENSION},
+ {"module.so", "rb", C_EXTENSION},
+diff -ru Python-2.5.1/configure.in Python-2.5.1+iPhone/configure.in
+--- Python-2.5.1/configure.in 2007-03-12 10:50:51.000000000 +0000
++++ Python-2.5.1+iPhone/configure.in 2008-01-09 10:27:52.000000000 +0000
+@@ -636,8 +638,8 @@
+ RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
+ INSTSONAME="$LDLIBRARY".$SOVERSION
+ ;;
+- Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
+- LDLIBRARY='libpython$(VERSION).so'
++ Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|Darwin*)
++ LDLIBRARY='libpython$(VERSION)'"${SO-so}"
+ BLDLIBRARY='-L. -lpython$(VERSION)'
+ RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
+ case $ac_sys_system in