Link even programs containing no Haskell modules with GHC
authorIan Lynagh <igloo@earth.li>
Mon, 6 Dec 2010 20:33:29 +0000 (20:33 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 6 Dec 2010 20:33:29 +0000 (20:33 +0000)
I don't remember why we made it use gcc instead, but going back to
using ghc doesn't seem to break anything, and should fix the build
on OS X 10.6.

rules/build-prog.mk

index 4121ca3..ff8d25b 100644 (file)
@@ -123,9 +123,6 @@ $1_$2_LINK_WITH_GCC = NO
 ifeq "$$(BootingFromHc)" "YES"
 $1_$2_LINK_WITH_GCC = YES
 endif
-ifeq "$$($1_$2_v_HS_OBJS)" ""
-$1_$2_LINK_WITH_GCC = YES
-endif
 
 ifeq "$$($1_$2_LINK_WITH_GCC)" "NO"
 $1/$2/build/tmp/$$($1_$2_PROG) : $$($1_$2_v_HS_OBJS) $$($1_$2_v_C_OBJS) $$($1_$2_v_S_OBJS) $$($1_$2_OTHER_OBJS) | $$$$(dir $$$$@)/.