summaryrefslogtreecommitdiff
path: root/data/python/dylib.diff
blob: 979925d4aa647e531220e6d63d937ec99ce70bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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