summaryrefslogtreecommitdiff
path: root/lang/nhc98/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'lang/nhc98/patches/patch-ae')
-rw-r--r--lang/nhc98/patches/patch-ae21
1 files changed, 17 insertions, 4 deletions
diff --git a/lang/nhc98/patches/patch-ae b/lang/nhc98/patches/patch-ae
index b54c899425d..1b271daf409 100644
--- a/lang/nhc98/patches/patch-ae
+++ b/lang/nhc98/patches/patch-ae
@@ -1,8 +1,21 @@
-$NetBSD: patch-ae,v 1.1 2004/01/16 00:59:18 kristerw Exp $
+$NetBSD: patch-ae,v 1.2 2004/01/16 20:03:59 kristerw Exp $
---- script/nhc98.inst.orig 2003-03-07 16:48:45.000000000 +0000
-+++ script/nhc98.inst 2003-12-16 16:30:11.000000000 +0000
-@@ -543,6 +543,7 @@
+--- script/nhc98.inst.orig Fri Mar 7 17:48:45 2003
++++ script/nhc98.inst Fri Jan 16 17:59:50 2004
+@@ -71,6 +71,12 @@
+ MAINROUTINE=$NHC98LIBDIR/$MACHINE/main
+
+ CC=${CC-gcc}" -D__NHC__=$VERSIONNUM"
++gcc_ver=`gcc -dumpversion`
++gcc_ver_major=`expr "$gcc_ver" : '\([0-9]*\)'`
++gcc_ver_minor=`expr "$gcc_ver" : '[0-9]*\.\([0-9]*\)'`
++if test $gcc_ver_major -eq 3 -a $gcc_ver_minor -ge 3; then
++ CC="${CC} -fno-zero-initialized-in-bss"
++fi
+
+ CPPDEFAULT="${CC} -D__HASKELL__=98 -D__HASKELL_98__ -D__HASKELL98__ -x c -E"
+
+@@ -543,6 +549,7 @@
echo $CPPAS $ENDIAN $CPPASFLAGS $CINCDIRS $TMPCPPASFILE -o $TMPASFILE
fi
$CPPAS $ENDIAN $CPPASFLAGS $CINCDIRS $TMPCPPASFILE -o - | \