The RTS needs hs-suffix-rules-srcdir for BootingFromHc
authorSimon Marlow <marlowsd@gmail.com>
Wed, 11 Nov 2009 11:12:25 +0000 (11:12 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 11 Nov 2009 11:12:25 +0000 (11:12 +0000)
Patch submitted by Matthias Kilian <kili@outback.escape.de>,
re-recorded against HEAD by me, with a comment added.

rts/ghc.mk

index a667ac3..2ae4d72 100644 (file)
@@ -95,6 +95,8 @@ endif
 $(call distdir-way-opts,rts,dist,$1)
 $(call c-suffix-rules,rts,dist,$1,YES)
 $(call cmm-suffix-rules,rts,dist,$1)
+$(call hs-suffix-rules-srcdir,rts,dist,$1,$$(dir))
+# hs-suffix-rules-srcdir is needed when BootingFromHc to get the .hc rules
 
 rts_$1_LIB = rts/dist/build/libHSrts$$($1_libsuf)