build: arrange to build with -fno-common, when possible

* configure.ac (WERROR_CFLAGS): Add -fno-common, when possible.
This would have prevented the duplicate definition of
presume_output_tty that was fixed in v3.4-10-gc2dc91f.
This commit is contained in:
Jim Meyering 2016-08-16 22:20:28 -07:00
parent c2dc91f196
commit 24792668f0

View File

@ -109,6 +109,7 @@ if test "$gl_gcc_warnings" = yes; then
gl_WARN_ADD([-fdiagnostics-show-option])
gl_WARN_ADD([-funit-at-a-time])
gl_WARN_ADD([-fno-common])
AC_SUBST([WARN_CFLAGS])