]> git.wh0rd.org Git - patches.git/blob - libtool-more-gcc-profile-linker-flags.patch
sync vapier-m
[patches.git] / libtool-more-gcc-profile-linker-flags.patch
1 2006-12-30  Mike Frysinger  <vapier@gentoo.org>
2
3         * libltdl/config/ltmain.m4sh (func_mode_link): Pass through
4         `-p', `-fprofile-arcs', and `-fprofile-generate' for GCC.
5
6 Index: libltdl/config/ltmain.m4sh
7 ===================================================================
8 RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v
9 retrieving revision 1.56
10 diff -u -p -r1.56 ltmain.m4sh
11 --- libltdl/config/ltmain.m4sh  22 Oct 2006 14:10:33 -0000      1.56
12 +++ libltdl/config/ltmain.m4sh  30 Dec 2006 15:37:08 -0000
13 @@ -2902,10 +2902,11 @@ func_mode_link ()
14        # -m*, -t[45]*, -txscale* pass through architecture-specific
15        # compiler args for GCC
16        # -F/path gives path to uninstalled frameworks, gcc on darwin
17 -      # -pg, --coverage pass through profiling flag for GCC
18 +      # -p, -pg, --coverage, -fprofile-arcs, -fprofile-generate pass
19 +      # through profiling flag for GCC
20        # @file GCC response files
21        -64|-mips[[0-9]]|-r[[0-9]][[0-9]]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
22 -      -t[[45]]*|-txscale*|-pg|--coverage|-F*|@*)
23 +      -t[[45]]*|-txscale*|-p|-pg|--coverage|-fprofile-arcs|-fprofile-generate|-F*|@*)
24          func_quote_for_eval "$arg"
25         arg="$func_quote_for_eval_result"
26          func_append compile_command " $arg"