From: sof Date: Fri, 9 Aug 2002 22:13:51 +0000 (+0000) Subject: [project @ 2002-08-09 22:13:51 by sof] X-Git-Tag: Approx_11550_changesets_converted~1770 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ebc0a34ae9e5d91b623c22259c7816c7f7a302c5;p=ghc-hetmet.git [project @ 2002-08-09 22:13:51 by sof] UseGhcForCc: don't use "ifneq" to control its setting; too strict. Resort to a $(shell ..) hack. --- diff --git a/ghc/rts/Makefile b/ghc/rts/Makefile index 37114fb..8e7443e 100644 --- a/ghc/rts/Makefile +++ b/ghc/rts/Makefile @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -# $Id: Makefile,v 1.74 2002/08/09 20:59:41 sof Exp $ +# $Id: Makefile,v 1.75 2002/08/09 22:13:51 sof Exp $ # # This is the Makefile for the runtime-system stuff. # This stuff is written in C (and cannot be written in Haskell). @@ -21,9 +21,7 @@ TOP=.. # 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. -ifneq "$(BootingFromHc)" "YES" -UseGhcForCc = YES -endif +UseGhcForCc = $(shell if (test "x$(BootingFromHc)" = "xYES"); then echo YES; else echo NO; fi) include $(TOP)/mk/boilerplate.mk