GCC debug flags cleanup

Alexander Kabaev kabaev at gmail.com
Sat Dec 24 01:50:17 UTC 2011


On Thu, 22 Dec 2011 12:52:45 +0100
Erik Cederstrand <erik at cederstrand.dk> wrote:

> Hi,
> 
> I've created a patch that cleans up FreeBSD Makefiles that
> unconditionally set the -g flag for GCC. The motivation for this is
> that it should be possible to add or remove this flag globally via
> e.g. CFLAGS (it's part of my quest to produce deterministic builds).
> 
> I'm not very familiar with GCC or the build infrastructure, so I'd be
> grateful if someone would review it and possibly commit.
> 
> http://dev.affect-it.dk/gcc_debug_flags.diff
> 
> Thanks,
> Erik_______________________________________________

gnu/usr.bin/cc/cc_tools/Makefile just builds tools that are used for
building gcc itself and are non installed anywhere outside of $OBJDIR.
I doubt disabling -g there buys you much, but having it there is also
of questionable value. Verdict: could not care less either way.

All of the gcc/contrib changes are useless - we are not using any of
stock Makefiles.

sys/amd64/conf/GENERIC - please understang _why_ it is there before you
remove it. When you do, you will probably will drop the idea.

--
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20111224/2289c692/signature.pgp


More information about the freebsd-current mailing list