3 This is pkgsrc specific: dtrace(1) gets confused when we have gcc
4 wrappers in the PATH so we have to hide them:
6 gcc: installation problem, cannot exec '/usr/pkgsrc/wip/ghc/work/.gcc/bin/p
7 owerpc-apple-darwin9-gcc-4.0.1': No such file or directory
8 dtrace: failed to compile script rts/RtsProbes.d: Preprocessor failed to pr
12 --- rts/ghc.mk.orig 2013-01-27 13:21:52.000000000 +0000
14 @@ -484,7 +484,7 @@ endif
16 DTRACEPROBES_SRC = rts/RtsProbes.d
17 $(DTRACEPROBES_H): $(DTRACEPROBES_SRC) includes/ghcplatform.h | $$(dir $$@)/.
18 - "$(DTRACE)" $(filter -I%,$(rts_CC_OPTS)) -C $(DTRACE_FLAGS) -h -o $@ -s $<
19 + env PATH="/usr/bin" "$(DTRACE)" $(filter -I%,$(rts_CC_OPTS)) -C $(DTRACE_FLAGS) -h -o $@ -s $<
22 # -----------------------------------------------------------------------------