summaryrefslogtreecommitdiff
path: root/lang/ghc/patches
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-01-10 19:31:25 +0000
committerkristerw <kristerw@pkgsrc.org>2004-01-10 19:31:25 +0000
commitf6bbff098787209cb3104facc0057683fe60ef86 (patch)
tree8948e671b8f7efed84541d69bc69b9cfc5512a7c /lang/ghc/patches
parentfc001ebd5b2597189d6dc1f62f01a5c2eaf95e89 (diff)
downloadpkgsrc-f6bbff098787209cb3104facc0057683fe60ef86.tar.gz
Make the pkg build on -current.
Closes PR pkg/23441.
Diffstat (limited to 'lang/ghc/patches')
-rw-r--r--lang/ghc/patches/patch-af15
-rw-r--r--lang/ghc/patches/patch-at16
2 files changed, 28 insertions, 3 deletions
diff --git a/lang/ghc/patches/patch-af b/lang/ghc/patches/patch-af
index 6fef94d29f1..b61287dfe79 100644
--- a/lang/ghc/patches/patch-af
+++ b/lang/ghc/patches/patch-af
@@ -1,7 +1,7 @@
-$NetBSD: patch-af,v 1.2 2003/04/29 11:27:44 augustss Exp $
+$NetBSD: patch-af,v 1.3 2004/01/10 19:31:25 kristerw Exp $
---- ./ghc/driver/mangler/ghc-asm.lprl.orig Sun Dec 8 15:29:50 2002
-+++ ./ghc/driver/mangler/ghc-asm.lprl Fri Mar 28 23:48:01 2003
+--- ghc/driver/mangler/ghc-asm.lprl.orig 2002-12-08 15:29:50.000000000 +0100
++++ ghc/driver/mangler/ghc-asm.lprl 2004-01-03 19:13:53.000000000 +0100
@@ -197,7 +197,7 @@
$T_hsc_cc_PAT = '\.string.*\)(hsc|cc) (.*)\\\\t(.*)"';
}
@@ -11,3 +11,12 @@ $NetBSD: patch-af,v 1.2 2003/04/29 11:27:44 augustss Exp $
$T_DOT_GLOBAL = '\.globl';
$T_HDR_literal = "\.section\t\.rodata\n"; # or just use .text??? (WDP 95/11)
$T_HDR_misc = "\.text\n\t\.align 4\n";
+@@ -1161,7 +1161,7 @@
+ }
+ }
+
+- if ( $TargetPlatform !~ /^(alpha-|hppa|mips-|powerpc-apple-)/) {
++ if ( $TargetPlatform !~ /^(i386-|alpha-|hppa|mips-|powerpc-apple-)/) {
+ # On alphas, hppa: no very good way to look for "dangling"
+ # references to fast-entry point.
+ # (questionable re hppa and mips...)
diff --git a/lang/ghc/patches/patch-at b/lang/ghc/patches/patch-at
new file mode 100644
index 00000000000..c9900227e58
--- /dev/null
+++ b/lang/ghc/patches/patch-at
@@ -0,0 +1,16 @@
+$NetBSD: patch-at,v 1.1 2004/01/10 19:31:25 kristerw Exp $
+
+--- ghc/compiler/main/DriverFlags.hc.orig Thu Jan 8 05:37:44 2004
++++ ghc/compiler/main/DriverFlags.hc Thu Jan 8 05:39:45 2004
+@@ -12134,7 +12134,11 @@
+ SET_HDR_(Hp-2,(P_)&stg_CAF_BLACKHOLE_info,0,0);
+ UPD_CAF(R1.p,Hp-2);
+ PUSH_UPD_FRAME(Hp-2,0);
++#if __GNUC__ <= 2
+ R1.a="-fno-builtin";
++#else
++R1.a="-fno-zero-initialized-in-bss";
++#endif
+ Sp=Sp-3;
+ JMP_(GHCziBase_unpackCStringzh_fast1);
+ FE_