summaryrefslogtreecommitdiff
path: root/lang/python15/files
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1998-10-06 06:49:13 +0000
committerThomas Gellekum <tg@FreeBSD.org>1998-10-06 06:49:13 +0000
commit7e62a3c4267c232e155e6f46630f696891526e34 (patch)
treef2815a87c7bc00f0b30feced9a4c97af7e2e00a3 /lang/python15/files
parentDo not write anything to ${PATCHDIR} by doing the awk trick to (diff)
Support dynamic loading of modules in an ELF world.
Submitted by: Vladimir Kushnir <kushn@mail.kar.net>
Notes
Notes: svn path=/head/; revision=13684
Diffstat (limited to 'lang/python15/files')
-rw-r--r--lang/python15/files/patch-ab20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/python15/files/patch-ab b/lang/python15/files/patch-ab
new file mode 100644
index 000000000000..9ed08036511d
--- /dev/null
+++ b/lang/python15/files/patch-ab
@@ -0,0 +1,20 @@
+*** Python/importdl.c.orig Tue Sep 29 12:17:52 1998
+--- Python/importdl.c Tue Sep 29 12:18:40 1998
+***************
+*** 211,217 ****
+ extern char *Py_GetProgramName();
+
+ #ifndef FUNCNAME_PATTERN
+! #if defined(__hp9000s300) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__BORLANDC__)
+ #define FUNCNAME_PATTERN "_init%.200s"
+ #else
+ #define FUNCNAME_PATTERN "init%.200s"
+--- 211,217 ----
+ extern char *Py_GetProgramName();
+
+ #ifndef FUNCNAME_PATTERN
+! #if defined(__hp9000s300) || defined(__NetBSD__) || (defined(__FreeBSD__) && !defined(__ELF__)) || defined(__OpenBSD__) || defined(__BORLANDC__)
+ #define FUNCNAME_PATTERN "_init%.200s"
+ #else
+ #define FUNCNAME_PATTERN "init%.200s"
+