fix on ELF architectures; from drahn@

This commit is contained in:
naddy 2001-10-18 18:52:51 +00:00
parent af7d717d3b
commit f35f396730
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Python_dynload_shlib_c,v 1.1 2001/10/18 18:52:51 naddy Exp $
--- Python/dynload_shlib.c.orig Wed Jan 10 15:17:27 2001
+++ Python/dynload_shlib.c Tue Oct 16 11:24:41 2001
@@ -16,7 +16,7 @@
#endif
#endif
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) && !defined(__ELF__)
#define LEAD_UNDERSCORE "_"
#else
#define LEAD_UNDERSCORE ""

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-configure_in,v 1.1 2001/10/18 18:52:52 naddy Exp $
--- configure.in.orig Mon Jul 16 11:07:26 2001
+++ configure.in Tue Oct 16 13:51:30 2001
@@ -599,7 +599,8 @@ then
Linux*) LDSHARED="gcc -shared";;
dgux*) LDSHARED="ld -G";;
BSD/OS*/4*) LDSHARED="gcc -shared";;
- OpenBSD*) LDSHARED="ld -Bshareable";;
+ OpenBSD*/2.[0-7]*) LDSHARED="ld -Bshareable";;
+ OpenBSD*) LDSHARED="cc -shared";;
NetBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
@@ -681,7 +682,7 @@ then
UnixWare*) LINKFORSHARED="-dy -Bdynamic -Wl,-Bexport";;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
- FreeBSD*|NetBSD*)
+ FreeBSD*|NetBSD*|OpenBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
LINKFORSHARED="-Wl,--export-dynamic"