]> gitweb @ CieloNegro.org - pkgsrc-ghc.git/blob - patches/patch-rts_ghc.mk
GHC 7.0.3 for powerpc-apple-darwin. It looks fully working, including GHCi!
[pkgsrc-ghc.git] / patches / patch-rts_ghc.mk
1 $NetBSD$
2
3 The first section:
4   HC bootstrapping has bitrotted further. We need to build RtsProbes.h
5   before compiling Capability.hc but rts/ghc.mk doesn't have such
6   rule.
7
8 The second section:
9   This is pkgsrc specific. /usr/sbin/dtrace gets confused when we have
10   ghc wrappers in the PATH so we have to hide them.
11
12
13 --- rts/ghc.mk.orig     2011-03-26 18:10:07.000000000 +0000
14 +++ rts/ghc.mk
15 @@ -452,12 +452,14 @@ rts_dist_MKDEPENDC_OPTS += -DPROFILING -
16  ifeq "$(USE_DTRACE)" "YES"
17  
18  rts_dist_MKDEPENDC_OPTS += -Irts/dist/build
19 +rts_CC_OPTS += -Irts/dist/build
20  
21  endif
22  
23  $(eval $(call build-dependencies,rts,dist,1))
24  
25  $(rts_dist_depfile_c_asm) : libffi/dist-install/build/ffi.h $(DTRACEPROBES_H)
26 +rts/dist/build/Capability.o : $(DTRACEPROBES_H)
27  
28  #-----------------------------------------------------------------------------
29  # libffi stuff
30 @@ -489,7 +491,7 @@ endif
31  
32  DTRACEPROBES_SRC = rts/RtsProbes.d
33  $(DTRACEPROBES_H): $(DTRACEPROBES_SRC) includes/ghcplatform.h | $$(dir $$@)/.
34 -       "$(DTRACE)" $(filter -I%,$(rts_CC_OPTS)) -C $(DTRACE_FLAGS) -h -o $@ -s $<
35 +       env PATH=/usr/bin "$(DTRACE)" $(filter -I%,$(rts_CC_OPTS)) -C $(DTRACE_FLAGS) -h -o $@ -s $<
36  endif
37  
38  # -----------------------------------------------------------------------------