]> gitweb @ CieloNegro.org - pkgsrc-ghc.git/blob - patches/patch-rts_ghc.mk
7.6.2 for powerpc-apple-darwin
[pkgsrc-ghc.git] / patches / patch-rts_ghc.mk
1 $NetBSD$
2
3 This is pkgsrc specific: dtrace(1) gets confused when we have gcc
4 wrappers in the PATH so we have to hide them:
5
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
9   ocess input program
10
11
12 --- rts/ghc.mk.orig     2013-01-27 13:21:52.000000000 +0000
13 +++ rts/ghc.mk
14 @@ -484,7 +484,7 @@ endif
15  
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 $<
20  endif
21  
22  # -----------------------------------------------------------------------------