Lines Matching +full:- +full:werror
1 # visibility.m4 serial 4 (gettext-0.18.2)
2 dnl Copyright (C) 2005, 2008, 2010-2011 Free Software Foundation, Inc.
9 dnl Tests whether the compiler supports the command-line option
10 dnl -fvisibility=hidden and the function and variable attributes
13 dnl Does *not* test for __visibility__("protected") - which has tricky
16 dnl Does *not* test for __visibility__("internal") - which has processor
18 dnl Does *not* test for #pragma GCC visibility push(hidden) - which is
32 if test -n "$GCC"; then
33 dnl First, check whether -Werror can be added to the command line, or
36 AC_MSG_CHECKING([whether the -Werror option is usable])
39 CFLAGS="$CFLAGS -Werror"
50 CFLAGS="$CFLAGS -fvisibility=hidden"
51 dnl We use the option -Werror and a function dummyfunc, because on some
52 dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning
57 CFLAGS="$CFLAGS -Werror"
73 VISIBILITY_CFLAGS="-fvisibility=hidden"
74 VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"