diff options
author | tsarna <tsarna> | 2000-11-11 17:08:16 +0000 |
---|---|---|
committer | tsarna <tsarna> | 2000-11-11 17:08:16 +0000 |
commit | be1ed8d303c2f5f666910744ba237e63cb4a6737 (patch) | |
tree | 1ae5bb19f4add7fe5b31c6d360ee34813de7ce2a | |
parent | 6f76211bf74b11f6dbd2a104dc2552336996843f (diff) | |
download | pkgsrc-be1ed8d303c2f5f666910744ba237e63cb4a6737.tar.gz |
Make this work on both ELF and a.out (again)
-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; |