ghc and MacOS X
Wed, 10 Jan 2001 04:17:57 -0800
> Would it be okay to add something like this to ghc/rtc/Makefile:
> EXTRA_CC_OPTS:=`echo $(EXTRA_CC_OPTS) | sed 's/[ ]*\([^ ][^ ]*\)/
> (my solution is somewhat inelegant but I am not too familiar
> with gmake, I'd be glad to learn a better way to do it.)
> The problem is that CC is being redefined to GHC_INPLACE, thus
> invoking ghc with EXTRA_CC_OPTS, and it gets confused by the
> -traditional-cpp flag I had to add.
EXTRA_*_OPTS are intended for use on the command line (eg. make
If you want to add something to CC_OPTS everywhere in the tree, use
SRC_CC_OPTS += -traditional-cpp
But I'm not sure exactly what you're trying to do - could you elaborate?