From 1f7401673588056747810fe4df23c847f4319f83 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 13 Apr 1998 15:27:21 +0000 Subject: [PATCH] Support for OpenBSD :-( --- Python/importdl.c | 2 +- configure | 6 +++--- configure.in | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Python/importdl.c b/Python/importdl.c index a0869907d28..7a0de085a5c 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -211,7 +211,7 @@ typedef void (*dl_funcptr)(); extern char *Py_GetProgramName(); #ifndef FUNCNAME_PATTERN -#if defined(__hp9000s300) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__BORLANDC__) +#if defined(__hp9000s300) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__BORLANDC__) #define FUNCNAME_PATTERN "_init%.200s" #else #define FUNCNAME_PATTERN "init%.200s" diff --git a/configure b/configure index 55235de833e..7b2c7d004f7 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh -# From configure.in Revision: 1.82 +# From configure.in Revision: 1.83 # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.12 @@ -1843,7 +1843,7 @@ then next/*) LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';; Linux*) LDSHARED="gcc -shared";; dgux*) LDSHARED="ld -G";; - FreeBSD*|NetBSD*) LDSHARED="ld -Bshareable";; + FreeBSD*|NetBSD*|OpenBSD*) LDSHARED="ld -Bshareable";; SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; *) LDSHARED="ld";; esac @@ -1861,7 +1861,7 @@ then else CCSHARED="+z"; fi;; Linux*) CCSHARED="-fpic";; - FreeBSD*|NetBSD*) CCSHARED="-fpic";; + FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fpic";; SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; IRIX*/6*) case $CC in *gcc*) CCSHARED="-shared";; diff --git a/configure.in b/configure.in index a81b2a00d8c..4ce2483bdb0 100644 --- a/configure.in +++ b/configure.in @@ -293,7 +293,7 @@ then next/*) LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';; Linux*) LDSHARED="gcc -shared";; dgux*) LDSHARED="ld -G";; - FreeBSD*|NetBSD*) LDSHARED="ld -Bshareable";; + FreeBSD*|NetBSD*|OpenBSD*) LDSHARED="ld -Bshareable";; SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; *) LDSHARED="ld";; esac @@ -310,7 +310,7 @@ then else CCSHARED="+z"; fi;; Linux*) CCSHARED="-fpic";; - FreeBSD*|NetBSD*) CCSHARED="-fpic";; + FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fpic";; SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; IRIX*/6*) case $CC in *gcc*) CCSHARED="-shared";;