Skip to content
Snippets Groups Projects
Commit 39318542 authored by Jeff Lewis's avatar Jeff Lewis
Browse files

[project @ 2000-08-04 23:31:43 by lewie]

Port to OpenBSD from Thomas Nordin.  Please merge with 4.08 (you'll also
need the new config.guess and config.sub from the previous commit).
parent 4dd966f6
No related branches found
No related tags found
No related merge requests found
...@@ -164,6 +164,15 @@ i[[3456]]86-*-netbsd*) ...@@ -164,6 +164,15 @@ i[[3456]]86-*-netbsd*)
HostVendor_CPP='unknown' HostVendor_CPP='unknown'
HostOS_CPP='netbsd' HostOS_CPP='netbsd'
;; ;;
i[[3456]]86-*-openbsd*)
HostPlatform=i386-unknown-openbsd # hack again
TargetPlatform=i386-unknown-openbsd
BuildPlatform=i386-unknown-openbsd
HostPlatform_CPP='i386_unknown_openbsd'
HostArch_CPP='i386'
HostVendor_CPP='unknown'
HostOS_CPP='openbsd'
;;
i[[3456]]86-*-solaris2*) i[[3456]]86-*-solaris2*)
HostPlatform=i386-unknown-solaris2 # hack again HostPlatform=i386-unknown-solaris2 # hack again
TargetPlatform=i386-unknown-solaris2 TargetPlatform=i386-unknown-solaris2
......
...@@ -44,6 +44,8 @@ i[[3456]]86-*-freebsd[[3-9]]*) ...@@ -44,6 +44,8 @@ i[[3456]]86-*-freebsd[[3-9]]*)
TargetPlatform=i386-unknown-freebsd;; TargetPlatform=i386-unknown-freebsd;;
i[[3456]]86-*-netbsd*) i[[3456]]86-*-netbsd*)
TargetPlatform=i386-unknown-netbsd;; TargetPlatform=i386-unknown-netbsd;;
i[[3456]]86-*-openbsd*)
TargetPlatform=i386-unknown-openbsd;;
i[[3456]]86-*-solaris2*) i[[3456]]86-*-solaris2*)
TargetPlatform=i386-unknown-solaris2;; TargetPlatform=i386-unknown-solaris2;;
i[[3456]]86-*-cygwin32*) i[[3456]]86-*-cygwin32*)
......
...@@ -26,9 +26,9 @@ touch ghc/compiler/parser/Parser.hs ...@@ -26,9 +26,9 @@ touch ghc/compiler/parser/Parser.hs
echo "*** Building hsc..." echo "*** Building hsc..."
./configure --enable-hc-boot $configopts || exit 1 ./configure --enable-hc-boot $configopts || exit 1
make boot all || exit 1 gmake boot all || exit 1
echo "*** Building library..." echo "*** Building library..."
echo "GhcWithHscBuiltViaC=NO" >>mk/build.mk echo "GhcWithHscBuiltViaC=NO" >>mk/build.mk
make -C ghc/lib clean boot all || exit 1 gmake -C ghc/lib clean boot all || exit 1
make -C hslibs clean boot all gmake -C hslibs clean boot all
...@@ -95,6 +95,12 @@ you will screw up the layout where they are used in case expressions! ...@@ -95,6 +95,12 @@ you will screw up the layout where they are used in case expressions!
# define IF_OS_netbsd(x,y) y # define IF_OS_netbsd(x,y) y
#endif #endif
-- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - -
#if openbsd_TARGET_OS
# define IF_OS_openbsd(x,y) x
#else
# define IF_OS_openbsd(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - -
#if linux_TARGET_OS #if linux_TARGET_OS
# define IF_OS_linux(x,y) x # define IF_OS_linux(x,y) x
#else #else
......
...@@ -126,7 +126,7 @@ sub init_TARGET_STUFF { ...@@ -126,7 +126,7 @@ sub init_TARGET_STUFF {
$T_HDR_direct = "\t.SPACE \$TEXT\$\n\t.SUBSPA \$CODE\$\n\t\.align 4\n"; $T_HDR_direct = "\t.SPACE \$TEXT\$\n\t.SUBSPA \$CODE\$\n\t\.align 4\n";
#--------------------------------------------------------# #--------------------------------------------------------#
} elsif ( $TargetPlatform =~ /^i386-.*-(linuxaout|freebsd2|netbsd|nextstep3|cygwin32|mingw32)$/ ) { } elsif ( $TargetPlatform =~ /^i386-.*-(linuxaout|freebsd2|netbsd|openbsd|nextstep3|cygwin32|mingw32)$/ ) {
# NeXT added but not tested. CaS # NeXT added but not tested. CaS
$T_STABBY = 1; # 1 iff .stab things (usually if a.out format) $T_STABBY = 1; # 1 iff .stab things (usually if a.out format)
......
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* $Id: MBlock.c,v 1.15 2000/04/03 15:24:21 rrt Exp $ * $Id: MBlock.c,v 1.16 2000/08/04 23:31:44 lewie Exp $
* *
* (c) The GHC Team 1998-1999 * (c) The GHC Team 1998-1999
* *
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
/* NetBSD i386 shared libs are at 0x40000000 /* NetBSD i386 shared libs are at 0x40000000
*/ */
#define ASK_FOR_MEM_AT 0x50000000 #define ASK_FOR_MEM_AT 0x50000000
#elif openbsd_TARGET_OS
#define ASK_FOR_MEM_AT 0x50000000
#elif linux_TARGET_OS #elif linux_TARGET_OS
/* Any ideas? /* Any ideas?
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment