瀏覽代碼

gcc needs -fprofile-arcs to emit gprof content

Samuel Thibault 14 年之前
父節點
當前提交
778dbe599b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      configure.ac

+ 2 - 2
configure.ac

@@ -830,8 +830,8 @@ AC_MSG_RESULT($enable_perf_debug)
 AC_SUBST(STARPU_PERF_DEBUG, $enable_perf_debug)
 if test x$enable_perf_debug = xyes; then
 	AC_DEFINE(STARPU_PERF_DEBUG, [1], [enable performance debug])
-	CPPFLAGS="${CPPFLAGS} -pg "
-	LDFLAGS="${LDFLAGS} -pg "
+	CPPFLAGS="${CPPFLAGS} -pg -fprofile-arcs "
+	LDFLAGS="${LDFLAGS} -pg -fprofile-arcs "
 fi
 
 AC_MSG_CHECKING(whether performance model debugging should be enabled)