git: bsd.lib.mk: Prevent "profiling impossible" warning

John Marino marino at crater.dragonflybsd.org
Sat Sep 29 09:36:13 PDT 2012


commit 2ec8bbd1f0e7c4305e1d93e07156c26a7bf20989
Author: John Marino <draco at marino.st>
Date:   Sat Sep 29 18:25:58 2012 +0200

    bsd.lib.mk: Prevent "profiling impossible" warning
    
    The flag combination of "-pg" and "-ffunction-sections" do not mix.
    GCC will emit the warning: "-ffunction-sections disabled; it makes
    profiling impossible"
    
    This simple modification to bsd.lib.mk will filter out
    -ffunction-sections flag whenever it tries to build profile
    objects.  The seemingly hundreds of warning in the world build
    log are now gone.

Summary of changes:
 share/mk/bsd.lib.mk |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2ec8bbd1f0e7c4305e1d93e07156c26a7bf20989


-- 
DragonFly BSD source repository



More information about the Commits mailing list