bsd.lib.mk: Prevent "profiling impossible" warning
authorJohn Marino <draco@marino.st>
Sat, 29 Sep 2012 16:25:58 +0000 (18:25 +0200)
committerJohn Marino <draco@marino.st>
Sat, 29 Sep 2012 16:35:35 +0000 (18:35 +0200)
commit2ec8bbd1f0e7c4305e1d93e07156c26a7bf20989
tree4127537918d335e8c13a837f0c17e4a202a62468
parentee1e51ef138a8effde8a29a520a22045edbc68fb
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.
share/mk/bsd.lib.mk