From 6f917d9600e7e5ba63a33f4079bcbc6ebbdb10fb Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 9 Jan 2006 14:25:44 +0000 Subject: [PATCH] [project @ 2006-01-09 14:25:44 by simonmar] --- configure.ac | 9 +++++++++ ghc/driver/mangler/ghc-asm.lprl | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9f99c20..5458c53 100644 --- a/configure.ac +++ b/configure.ac @@ -197,6 +197,15 @@ i[[3456]]86-*-gnu*) HostVendor_CPP=unknown HostOS_CPP=gnu ;; +i[[3456]]86-*-kfreebsd*-gnu) + HostPlatform=i386-unknown-kfreebsdgnu # hack again + TargetPlatform=i386-unknown-kfreebsdgnu + BuildPlatform=i386-unknown-kfreebsdgnu + HostPlatform_CPP='i386_unknown_kfreebsdgnu' + HostArch_CPP='i386' + HostVendor_CPP='unknown' + HostOS_CPP='kfreebsdgnu' + ;; i[[3456]]86-*-freebsd[[3-9]]*) # FreeBSD 3.0+ uses ELF HostPlatform=i386-unknown-freebsd # hack again TargetPlatform=i386-unknown-freebsd diff --git a/ghc/driver/mangler/ghc-asm.lprl b/ghc/driver/mangler/ghc-asm.lprl index 1c75f00..760175a 100644 --- a/ghc/driver/mangler/ghc-asm.lprl +++ b/ghc/driver/mangler/ghc-asm.lprl @@ -160,7 +160,7 @@ sub init_TARGET_STUFF { $T_HDR_vector = "\.text\n\t\.align 2\n"; # NB: requires padding #--------------------------------------------------------# - } elsif ( $TargetPlatform =~ /^i386-.*-(solaris2|linux|gnu|freebsd|netbsd|openbsd)$/ ) { + } elsif ( $TargetPlatform =~ /^i386-.*-(solaris2|linux|gnu|freebsd|netbsd|openbsd|kfreebsdgnu)$/ ) { $T_STABBY = 0; # 1 iff .stab things (usually if a.out format) $T_US = ''; # _ if symbols have an underscore on the front -- 1.7.10.4