diff options
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/patches/patch-aa | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lang/python/patches/patch-aa b/lang/python/patches/patch-aa new file mode 100644 index 00000000000..c54415761af --- /dev/null +++ b/lang/python/patches/patch-aa @@ -0,0 +1,30 @@ +$NetBSD: patch-aa,v 1.7 2000/11/11 17:08:16 tsarna Exp $ + +Make this work on non-ELF NetBSD. +Based on current python cvs with (probably broken... are ALL OpenBSD +ports a.out?) + NetBSD fix. + +--- Python/dynload_shlib.c.orig Sat Nov 11 10:32:40 2000 ++++ Python/dynload_shlib.c Sat Nov 11 10:51:03 2000 +@@ -16,6 +16,12 @@ + #endif + #endif + ++#if (defined(__NetBSD__) || defined(__OpenBSD__)) && !defined(__ELF__) ++#define LEAD_UNDERSCORE "_" ++#else ++#define LEAD_UNDERSCORE "" ++#endif ++ + #ifndef RTLD_LAZY + #define RTLD_LAZY 1 + #endif +@@ -55,7 +61,7 @@ + } + + /* ### should there be a leading underscore for some platforms? */ +- sprintf(funcname, "init%.200s", shortname); ++ sprintf(funcname, LEAD_UNDERSCORE "init%.200s", shortname); + + if (fp != NULL) { + int i; |