freebsd-nq/share/mk
John Birrell cfb5b3256b Re-enable -Werror again.
This time, change the default CFLAGS to match the simple defaults that
the tinderboxes use. That is, don't use -fno-strict-aliasing by default.

My last attempt to re-anable -Werror gave me a lesson in what strict
aliasing is all about. There was code in libthr that wasn't 64-bit clean.
The default use of -fno-strict-aliasing hid that.

By using -fno-strict-aliasing by default we were choosing to ignore
problems in code which had the potential to shoot ourselves in the
foot. Sometimes it would be the 64-bit foot. I have both feet. The left
ones are 32 bits and the right ones are 64 bits. Don't ask about my
endian orientation. :-)

The -fno-strict-aliasing compiler arg can still be used if NO_STRING_ALIASING
is define in make.

We are early in the FreeBSD 8 development, so we have the opportunity to
wait and see if this works for us. I am sure that people will complain.
We can easily revert this. All I ask is that we take sides: clean code or
not. YMMV.

Note that by using -fno-strict-aliasing the build won't actually break.
Only where WARNS is set (and -Werror is used) will a compiler warning break
the build. The use of WARNS levels implies (to me at least) that the
developer has taken some care to make the code pass basic checks. This
commit makes those checks just a little bit more strict.
2007-11-22 23:21:12 +00:00
..
bsd.compat.mk Align the warning message with the one in bsd.own.mk. 2007-10-20 18:46:15 +00:00
bsd.cpu.mk Backout rev 1.62, and revert to use -march=armv5te -D__XSCALE__ instead 2007-10-16 18:32:37 +00:00
bsd.dep.mk Remove trailing spaces. 2005-01-06 11:12:43 +00:00
bsd.doc.mk NODOCCOMPRESS -> NO_DOCCOMPRESS 2004-12-21 09:33:47 +00:00
bsd.endian.mk Change one more ARM_BIG_ENDIAN to TARGET_BIG_ENDIAN. 2006-11-05 15:33:26 +00:00
bsd.files.mk Make sure the only thing that follows .endif or .else is a comment. 2005-04-11 07:13:29 +00:00
bsd.incs.mk Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
bsd.info.mk Don't run install-info under lockf if not installing in parallel. 2006-09-29 15:36:19 +00:00
bsd.init.mk Make sure the only thing that follows .endif or .else is a comment. 2005-04-11 07:13:29 +00:00
bsd.kmod.mk Fixed style bugs in previous commit (151 characters of trailing whitespace). 2004-06-21 16:12:02 +00:00
bsd.lib.mk - Convert NO_INSTALLLIB option to a new syntax: makefiles should 2007-10-20 19:01:50 +00:00
bsd.libnames.mk Fixed "make checkdpadd" (missing library dependencies). 2007-10-01 18:15:11 +00:00
bsd.links.mk
bsd.man.mk Stop clobberring the application namespace with local 2007-03-12 13:54:52 +00:00
bsd.nls.mk Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
bsd.obj.mk Make sure the only thing that follows .endif or .else is a comment. 2005-04-11 07:13:29 +00:00
bsd.own.mk - Convert NO_INSTALLLIB option to a new syntax: makefiles should 2007-10-20 19:01:50 +00:00
bsd.pkg.mk If PORTNAME is set in a system Makefile then hook into the ports 2004-12-20 15:46:56 +00:00
bsd.port.mk Try harder to not leak src/ build stuff into ports/ environment 2006-11-19 16:28:52 +00:00
bsd.port.options.mk Add bsd.port.options.mk, a stub to include parts of bsd.port.mk that handle 2007-06-01 15:17:51 +00:00
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk Enable testing of customized variants of bsd.port.mk and 2004-07-02 20:47:18 +00:00
bsd.prog.mk Fixed "make checkdpadd" (missing library dependencies). 2007-10-01 18:15:11 +00:00
bsd.README "clean" of <bsd.prog.mk> no longer removes a.out, Errs, 2006-06-18 11:26:17 +00:00
bsd.snmpmod.mk Don't include bsd.init.mk so early - it's just not needed here. 2005-11-10 12:07:12 +00:00
bsd.subdir.mk For ${SUBDIR} targets, change the type of dependency operator from `::' 2005-05-31 07:14:51 +00:00
bsd.symver.mk Explicitly verify if we have found the VERSION_GEN script 2007-10-18 15:21:35 +00:00
bsd.sys.mk Re-enable -Werror again. 2007-11-22 23:21:12 +00:00
Makefile Break long line 2007-06-01 15:32:23 +00:00
sys.mk Re-enable -Werror again. 2007-11-22 23:21:12 +00:00
version_gen.awk Distinguish the cases when a dup symbol is in different versions 2007-10-18 10:32:28 +00:00