diff options
author | tsarna <tsarna@pkgsrc.org> | 2000-11-11 17:08:16 +0000 |
---|---|---|
committer | tsarna <tsarna@pkgsrc.org> | 2000-11-11 17:08:16 +0000 |
commit | fee9207654715b9f49e46a53742a55d2e376879a (patch) | |
tree | 1ae5bb19f4add7fe5b31c6d360ee34813de7ce2a | |
parent | fa569f8c2a74a81379fdb96892a4dda9f2f347a9 (diff) | |
download | pkgsrc-fee9207654715b9f49e46a53742a55d2e376879a.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; |