From 6e5e61f9956abec0aee8a4d0fe311a30e49cdb08 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sun, 3 Mar 2019 16:59:18 +0100 Subject: [PATCH] Fix linking pgo binary with GCC. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 47e1be9bf..5504be94f 100644 --- a/Makefile +++ b/Makefile @@ -117,7 +117,6 @@ ifdef HAVE_GCC CXXFLAGS_PROFILE_GENERATE += -fprofile-generate -fprofile-dir=$(PROFILE_OUT) CXXFLAGS_PROFILE_USE += -fprofile-use -fprofile-dir=$(PROFILE_OUT) LDFLAGS_PROFILE_GENERATE += -fprofile-generate - LDFLAGS_PROFILE_USE += -fprofile-generate endif all: $(EXECUTABLE) @@ -174,7 +173,7 @@ $(EXECUTABLE_PROFILE_GENERATE): $(OBJS_PROFILE_GENERATE) $(LD) $(LDFLAGS_PROFILE_GENERATE) $(PRE_OBJS_FLAGS) $+ $(POST_OBJS_FLAGS) $(LIBS) $(PROF) -o $@ $(EXECUTABLE_PROFILE_USE): $(OBJS_PROFILE_USE) - $(LD) $(LDFLAGS_PROFILE_USE) $(PRE_OBJS_FLAGS) $+ $(POST_OBJS_FLAGS) $(LIBS) $(PROF) -o $@ + $(LD) $(LDFLAGS) $(PRE_OBJS_FLAGS) $+ $(POST_OBJS_FLAGS) $(LIBS) $(PROF) -o $@ distclean: clean $(RM_REC) $(DEPDIRS)