summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-06 14:51:57 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-06 14:51:57 (GMT)
commit963b72a978e2d4330b46c084effc90fd45b503d5 (patch)
tree3d13794e12e1ee15347be0e543ef3b522c41bfa0 /unix/tcl.m4
parent7207d9a57abd342956e228d594c8e4a70a03030a (diff)
downloadtcl-963b72a978e2d4330b46c084effc90fd45b503d5.zip
tcl-963b72a978e2d4330b46c084effc90fd45b503d5.tar.gz
tcl-963b72a978e2d4330b46c084effc90fd45b503d5.tar.bz2
Don't use -fvisibility=hidden with static libraries (--disable-shared)
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 8c9eaf0..9a02e4c 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1044,7 +1044,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
AC_CACHE_CHECK([if compiler supports visibility "hidden"],
tcl_cv_cc_visibility_hidden, [
- AS_IF([test "$GCC" = yes], [
+ AS_IF([test "$GCC" = yes -a "$SHARED_BUILD" = 1], [
hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fvisibility=hidden -Werror"
AC_TRY_COMPILE(,, tcl_cv_cc_visibility_hidden=yes,
tcl_cv_cc_visibility_hidden=no)