From: sof Date: Thu, 14 Feb 2002 17:17:08 +0000 (+0000) Subject: [project @ 2002-02-14 17:17:08 by sof] X-Git-Tag: Approximately_9120_patches~43 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=18b9187c217336650abf6c267eda3000d031da82;p=ghc-hetmet.git [project @ 2002-02-14 17:17:08 by sof] COMPILING_RTS wasn't being fed to the C compiler. It is arguably a bug/feature deficiency of GHC not to do the Right Thing for invocations such as these: ghc -c -DFOO foo.c i.e., pass -DFOO to the C compiler -- currently, you have to be explicit about this, -optc-DFOO --- diff --git a/ghc/rts/Makefile b/ghc/rts/Makefile index eb1fd0d..9240686 100644 --- a/ghc/rts/Makefile +++ b/ghc/rts/Makefile @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -# $Id: Makefile,v 1.67 2002/02/14 15:11:28 simonmar Exp $ +# $Id: Makefile,v 1.68 2002/02/14 17:17:08 sof Exp $ # # This is the Makefile for the runtime-system stuff. # This stuff is written in C (and cannot be written in Haskell). @@ -85,18 +85,16 @@ WARNING_OPTS += -Wcast-align #WARNING_OPTS += -Wredundant-decls #WARNING_OPTS += -Wconversion -STANDARD_OPTS+=-I../includes -I. -Iparallel -DCOMPILING_RTS +STANDARD_OPTS += -I../includes -I. -Iparallel +# COMPILING_RTS is only used when building Win32 DLL support. +STANDARD_OPTS += -DCOMPILING_RTS # HC_OPTS is included in both .c and .hc compilations, whereas CC_OPTS is # only included in .c compilations. HC_OPTS included the WAY_* opts, which # must be included in both types of compilations. SRC_CC_OPTS += $(WARNING_OPTS) - -# Don't bother adding these to CC_OPTS; get them via HC_OPTS anyway. -SRC_MKDEPENDC_OPTS += $(STANDARD_OPTS) - -SRC_HC_OPTS += $(STANDARD_OPTS) +SRC_CC_OPTS += $(STANDARD_OPTS) SRC_CC_OPTS += $(GhcRtsCcOpts) SRC_HC_OPTS += $(GhcRtsHcOpts)