fix on ELF architectures; from drahn@
This commit is contained in:
parent
af7d717d3b
commit
f35f396730
12
lang/python/patches/patch-Python_dynload_shlib_c
Normal file
12
lang/python/patches/patch-Python_dynload_shlib_c
Normal 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 ""
|
22
lang/python/patches/patch-configure_in
Normal file
22
lang/python/patches/patch-configure_in
Normal 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"
|
Loading…
Reference in New Issue
Block a user