openbsd-ports/lang/ghc/patches/patch-ghc_driver_mangler_ghc-asm_lprl
2005-02-19 03:42:11 +00:00

14 lines
677 B
Plaintext

$OpenBSD: patch-ghc_driver_mangler_ghc-asm_lprl,v 1.7 2005/02/19 03:42:11 dons Exp $
How to pattern match amd64 asm.
--- ghc/driver/mangler/ghc-asm.lprl.orig Thu Sep 16 02:29:49 2004
+++ ghc/driver/mangler/ghc-asm.lprl Thu Feb 17 18:13:34 2005
@@ -230,7 +230,7 @@ sub init_TARGET_STUFF {
$T_HDR_direct = "\.text\n\t\.align 8\n";
#--------------------------------------------------------#
- } elsif ( $TargetPlatform =~ /^x86_64-.*-linux$/ ) {
+ } elsif ( $TargetPlatform =~ /^x86_64-.*-(linux|openbsd)$/ ) {
$T_STABBY = 0; # 1 iff .stab things (usually if a.out format)
$T_US = ''; # _ if symbols have an underscore on the front