diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2011-04-11 07:31:18 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2011-04-11 07:31:18 (GMT) |
| commit | 6d552bbd43b4484d58def6fdd4a61ecd424efcc8 (patch) | |
| tree | 76c5ff34aaafe880b1f5e5af0027b3bee77f28ec /unix/tcl.m4 | |
| parent | 6fc4555f53b507284431e1d05f2ff9788bbf26f2 (diff) | |
| download | tcl-6d552bbd43b4484d58def6fdd4a61ecd424efcc8.zip tcl-6d552bbd43b4484d58def6fdd4a61ecd424efcc8.tar.gz tcl-6d552bbd43b4484d58def6fdd4a61ecd424efcc8.tar.bz2 | |
fix for [Bug 3281728]: Tcl sources from 2011-04-06 do not build on GCC9 (RH9)
Diffstat (limited to 'unix/tcl.m4')
| -rw-r--r-- | unix/tcl.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 9a02e4c..5f4012d 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1044,9 +1044,12 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ AC_CACHE_CHECK([if compiler supports visibility "hidden"], tcl_cv_cc_visibility_hidden, [ - AS_IF([test "$GCC" = yes -a "$SHARED_BUILD" = 1], [ + AS_IF([test "$SHARED_BUILD" = 1], [ hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fvisibility=hidden -Werror" - AC_TRY_COMPILE(,, tcl_cv_cc_visibility_hidden=yes, + AC_TRY_COMPILE(,[#if !defined(__GNUC__) || __GNUC__ < 4 +#error visibility hidden is not supported for this compiler +#endif + ], tcl_cv_cc_visibility_hidden=yes, tcl_cv_cc_visibility_hidden=no) CFLAGS=$hold_cflags ], [ |
