summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-11 07:31:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-11 07:31:18 (GMT)
commitef309fcd9588574626469b6b0d0e169dbf0e097c (patch)
tree76c5ff34aaafe880b1f5e5af0027b3bee77f28ec /unix/configure
parent482a45104f6ba35c391aaa3014419e723b063116 (diff)
downloadtcl-ef309fcd9588574626469b6b0d0e169dbf0e097c.zip
tcl-ef309fcd9588574626469b6b0d0e169dbf0e097c.tar.gz
tcl-ef309fcd9588574626469b6b0d0e169dbf0e097c.tar.bz2
fix for [Bug 3281728]: Tcl sources from 2011-04-06 do not build on GCC9 (RH9)
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure5
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/configure b/unix/configure
index 4fdddd4..2483e4a 100755
--- a/unix/configure
+++ b/unix/configure
@@ -6479,7 +6479,7 @@ if test "${tcl_cv_cc_visibility_hidden+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- if test "$GCC" = yes -a "$SHARED_BUILD" = 1; then
+ if test "$SHARED_BUILD" = 1; then
hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fvisibility=hidden -Werror"
cat >conftest.$ac_ext <<_ACEOF
@@ -6492,6 +6492,9 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
+#if !defined(__GNUC__) || __GNUC__ < 4
+#error visibility hidden is not supported for this compiler
+#endif
;
return 0;