openbsd-ports/lang/ocaml/patches/patch-configure

47 lines
2.1 KiB
Plaintext
Raw Normal View History

$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
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;;
powerpc-*-linux*) arch=power; model=ppc; system=elf;;
2003-12-31 12:05:28 -05:00
powerpc-*-netbsd*) arch=power; model=ppc; system=bsd;;
+ powerpc-*-openbsd*) arch=power; model=ppc; system=bsd;;
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
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';;
i386,*,bsd_elf) profiling='prof';;
+ amd64,*,openbsd) profiling='prof';;
+ power,*,bsd) profiling='prof';;
+ sparc,*,bsd) profiling='prof';;
sparc,*,solaris)
profiling='prof'
case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;;