updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / firefox-pgo-hg / potential-pgo-fix.patch
bloba76ecb2b024de3bc15b1dd97f6450f093a164119
1 diff -r b8f1ba61d9bc configure.in
2 --- a/configure.in Fri Apr 10 16:42:29 2009 -0400
3 +++ b/configure.in Sat Apr 11 21:02:10 2009 +0200
4 @@ -7099,28 +7099,28 @@ MOZ_ARG_DISABLE_BOOL(profile-guided-opti
5 [ --disable-profile-guided-optimization
6 Don't build with PGO even if called via make profiledbuild],
7 MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE=1,
8 MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE=)
10 AC_SUBST(MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE)
12 _SAVE_CFLAGS="$CFLAGS"
13 -CFLAGS="$CFLAGS -fprofile-generate"
14 +CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction -fprofile-arcs -ftest-coverage"
16 AC_MSG_CHECKING([whether C compiler supports -fprofile-generate])
17 AC_TRY_COMPILE([], [return 0;],
18 - [ PROFILE_GEN_CFLAGS="-fprofile-generate"
19 + [ PROFILE_GEN_CFLAGS="-fprofile-generate -fprofile-correction -fprofile-arcs -ftest-coverage"
20 result="yes" ], result="no")
21 AC_MSG_RESULT([$result])
23 if test $result = "yes"; then
24 PROFILE_GEN_LDFLAGS="-fprofile-generate"
25 - PROFILE_USE_CFLAGS="-fprofile-use"
26 - PROFILE_USE_LDFLAGS="-fprofile-use"
27 + PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -fprofile-arcs -ftest-coverage"
28 + PROFILE_USE_LDFLAGS="-fprofile-use -fprofile-correction -fprofile-arcs"
29 else
30 CFLAGS="$_SAVE_CFLAGS -fprofile-arcs"
31 AC_MSG_CHECKING([whether C compiler supports -fprofile-arcs])
32 AC_TRY_COMPILE([], [return 0;],
33 [ PROFILE_GEN_CFLAGS="-fprofile-arcs"
34 result="yes" ], result="no")
35 AC_MSG_RESULT([$result])
36 if test $result = "yes"; then
37 endif