summaryrefslogtreecommitdiff
path: root/lang/ghc/patches/patch-ai
blob: db3baeff5826f1bfac0544f5bfe7ec3d787d40fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ai,v 1.1 2003/04/29 11:27:45 augustss Exp $

--- ./ghc/rts/Makefile.orig	Sun Oct 13 19:50:55 2002
+++ ./ghc/rts/Makefile	Fri Mar 28 23:48:02 2003
@@ -21,6 +21,7 @@
 # set of suffix rules for compiling C code, using $(HC) rather than $(CC)
 # and prepending "-optc" to $(CC_OPTS).  NB. must be done before including
 # boilerplate.mk below.
+# NB. this requires BootingFromHc to be set on the make command line!
 ifneq "$(BootingFromHc)" "YES"
 UseGhcForCc = YES
 endif
@@ -126,6 +127,10 @@
 ifeq "$(HaveLibMingwEx)" "YES"
 PACKAGE_CPP_OPTS += -DHAVE_LIBMINGWEX
 endif
+
+# have to get ExtraLdOptsGmp in through CPP to rts.conf.in (see hslibs/util/Makefile)
+comma = ,
+PACKAGE_CPP_OPTS += -DExtraLdOptsGmp='$(patsubst %,"%"$(comma),$(ExtraLdOptsGmp))'
 
 #-----------------------------------------------------------------------------
 # Include the Front panel code?