openbsd-ports/lang/ghc/patches/patch-ghc_driver_mangler_ghc-asm_lprl
avsm f9f57467b2 Add support for sparc ghc.
Hard work by Donald Stewart <dons at cse.unsw.edu.au>
2004-01-08 20:33:23 +00:00

30 lines
1.4 KiB
Plaintext

--- ghc/driver/mangler/ghc-asm.lprl.orig Mon Jun 30 08:40:55 2003
+++ ghc/driver/mangler/ghc-asm.lprl Sat Sep 20 18:49:19 2003
@@ -142,7 +142,7 @@
$T_create_word = "\t.word";
#--------------------------------------------------------#
- } elsif ( $TargetPlatform =~ /^i386-.*-(linuxaout|freebsd2|openbsd|nextstep3|cygwin32|mingw32)$/ ) {
+ } elsif ( $TargetPlatform =~ /^i386-.*-(linuxaout|freebsd2|nextstep3|cygwin32|mingw32)$/ ) {
# NeXT added but not tested. CaS
$T_STABBY = 1; # 1 iff .stab things (usually if a.out format)
@@ -172,7 +172,7 @@
$T_create_word = "\t.word";
#--------------------------------------------------------#
- } elsif ( $TargetPlatform =~ /^i386-.*-(solaris2|linux|freebsd|netbsd)$/ ) {
+ } elsif ( $TargetPlatform =~ /^i386-.*-(solaris2|linux|freebsd|netbsd|openbsd)$/ ) {
$T_STABBY = 0; # 1 iff .stab things (usually if a.out format)
$T_US = ''; # _ if symbols have an underscore on the front
@@ -317,7 +317,7 @@
$T_create_word = "\t.long";
#--------------------------------------------------------#
- } elsif ( $TargetPlatform =~ /^sparc-.*-solaris2/ ) {
+ } elsif ( $TargetPlatform =~ /^sparc-.*-(solaris2|openbsd)/ ) {
$T_STABBY = 0; # 1 iff .stab things (usually if a.out format)
$T_US = ''; # _ if symbols have an underscore on the front