Remove libHSrtsmain.a before creating it
authorIan Lynagh <igloo@earth.li>
Sun, 1 Aug 2010 00:54:32 +0000 (00:54 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 1 Aug 2010 00:54:32 +0000 (00:54 +0000)
Otherwise it isn't updated properly if rts/Main.c changes

rts/ghc.mk

index ca68b55..1ff6f62 100644 (file)
@@ -464,6 +464,7 @@ endif
 
 ifneq "$(BINDIST)" "YES"
 rts/dist/build/libHSrtsmain.a : rts/dist/build/Main.o
 
 ifneq "$(BINDIST)" "YES"
 rts/dist/build/libHSrtsmain.a : rts/dist/build/Main.o
+       "$(RM)" $(RM_OPTS) $@
        "$(AR)" $(AR_OPTS) $(EXTRA_AR_ARGS) $@ $<
 endif
 
        "$(AR)" $(AR_OPTS) $(EXTRA_AR_ARGS) $@ $<
 endif