Fix linking pgo binary with GCC.

This commit is contained in:
Christian Speckner 2019-03-03 16:59:18 +01:00
parent 24305371c7
commit 6e5e61f995
1 changed files with 1 additions and 2 deletions

View File

@ -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)