From 9b6b510ca80fcc3c623dad9a34839b1235f628f2 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 9 Nov 2011 05:03:46 +0100 Subject: [PATCH] Another fix to profile-build on gcc 4.6 Oliver reports profile builds error with new gcc 4.6, he says: "We need to add -lgov with profile-generate AND profile-use. So it has to be added to the second stage of building too. The problem occurred first with the introduction of gcc4.6 and I think this is because the previous version did find the gcov library automatically. gcc4.6 needs more precise options and does less guesses. I have seen it in debian, Ubuntu and also with mingw on Windows. And all use gcc4.6." This patch fixes the issue. No functional change. Signed-off-by: Marco Costalba --- src/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile b/src/Makefile index 7e51d504..9650c7f6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -492,6 +492,7 @@ gcc-profile-make: gcc-profile-use: $(MAKE) ARCH=$(ARCH) COMP=$(COMP) \ EXTRACXXFLAGS='-fprofile-use' \ + EXTRALDFLAGS='-lgcov' \ all gcc-profile-clean: -- 2.39.2