Add the coverage cflags to the link step as well to make sure
[oota-llvm.git] / Makefile.rules
index 941797107c7849ddf76efca0e97dcbca8306f74c..ff0a3e3f81915b8b2f1cb41f7ca848aae41b6716 100644 (file)
@@ -377,6 +377,7 @@ ifeq ($(ENABLE_COVERAGE),1)
   BuildMode := $(BuildMode)+Coverage
   CXX.Flags += -ftest-coverage -fprofile-arcs
   C.Flags   += -ftest-coverage -fprofile-arcs
+  LD.Flags   += -ftest-coverage -fprofile-arcs
 endif
 
 # If DISABLE_ASSERTIONS=1 is specified (make command line or configured),