2007-02-08 09:32:57 -05:00
|
|
|
$OpenBSD: patch-configure,v 1.10 2007/02/08 14:32:57 avsm Exp $
|
|
|
|
--- configure.orig Tue Dec 26 23:30:01 2006
|
|
|
|
+++ configure Tue Dec 26 23:29:28 2006
|
|
|
|
@@ -483,7 +483,7 @@ mksharedlibrpath=''
|
|
|
|
|
|
|
|
if test $withsharedlibs = "yes"; then
|
|
|
|
case "$host" in
|
|
|
|
- *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-gnu*)
|
|
|
|
+ *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-openbsd*|*-*-gnu*)
|
|
|
|
sharedcccompopts="-fPIC"
|
|
|
|
mksharedlib="$bytecc -shared -o"
|
|
|
|
bytecclinkopts="$bytecclinkopts -Wl,-E"
|
2006-05-28 11:28:53 -04:00
|
|
|
@@ -566,6 +566,7 @@ case "$host" in
|
2004-03-05 16:54:35 -05:00
|
|
|
alpha*-*-freebsd*) arch=alpha; system=freebsd;;
|
|
|
|
alpha*-*-netbsd*) arch=alpha; system=netbsd;;
|
|
|
|
alpha*-*-openbsd*) arch=alpha; system=openbsd;;
|
|
|
|
+ amd64-*-openbsd*) arch=amd64; system=openbsd;;
|
|
|
|
sparc*-*-sunos4.*) arch=sparc; system=sunos;;
|
|
|
|
sparc*-*-solaris2.*) arch=sparc; system=solaris;;
|
|
|
|
sparc*-*-*bsd*) arch=sparc; system=bsd;;
|
2006-05-28 11:28:53 -04:00
|
|
|
@@ -586,9 +587,11 @@ case "$host" in
|
|
|
|
hppa*-*-gnu*) arch=hppa; system=gnu;;
|
2002-09-12 13:02:47 -04:00
|
|
|
powerpc-*-linux*) arch=power; model=ppc; system=elf;;
|
2003-12-31 12:05:28 -05:00
|
|
|
powerpc-*-netbsd*) arch=power; model=ppc; system=bsd;;
|
2005-05-09 09:50:41 -04:00
|
|
|
+ powerpc-*-openbsd*) arch=power; model=ppc; system=bsd;;
|
2002-09-12 13:02:47 -04:00
|
|
|
powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;;
|
|
|
|
powerpc-*-darwin*) arch=power; model=ppc; system=rhapsody;;
|
|
|
|
arm*-*-linux*) arch=arm; system=linux;;
|
2006-05-28 11:28:53 -04:00
|
|
|
+ zaurus*-*-openbsd*) arch=arm; system=openbsd;;
|
|
|
|
arm*-*-gnu*) arch=arm; system=gnu;;
|
2005-05-28 16:55:45 -04:00
|
|
|
ia64-*-linux*) arch=ia64; system=linux;;
|
2006-05-28 11:28:53 -04:00
|
|
|
ia64-*-gnu*) arch=ia64; system=gnu;;
|
|
|
|
@@ -664,9 +667,13 @@ esac
|
2004-01-25 12:02:59 -05:00
|
|
|
cc_profile='-pg'
|
|
|
|
case "$arch,$model,$system" in
|
|
|
|
alpha,*,digital) profiling='prof';;
|
|
|
|
+ alpha,*,openbsd) profiling='prof';;
|
|
|
|
i386,*,linux_elf) profiling='prof';;
|
2006-05-28 11:28:53 -04:00
|
|
|
i386,*,gnu) profiling='prof';;
|
2004-01-25 12:02:59 -05:00
|
|
|
i386,*,bsd_elf) profiling='prof';;
|
2004-03-05 16:54:35 -05:00
|
|
|
+ amd64,*,openbsd) profiling='prof';;
|
2004-06-22 14:14:44 -04:00
|
|
|
+ power,*,bsd) profiling='prof';;
|
2004-01-25 12:02:59 -05:00
|
|
|
+ sparc,*,bsd) profiling='prof';;
|
|
|
|
sparc,*,solaris)
|
|
|
|
profiling='prof'
|
|
|
|
case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;;
|