diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-04-06 14:54:06 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-04-06 14:54:06 (GMT) |
commit | e536b3536ed366b76ba05f7b6bbfddbba3127965 (patch) | |
tree | c67ac77da328b014485f7794aab500dece201863 /unix/tcl.m4 | |
parent | 4f7e6a5909b4916bc504be0ddecfa1e9b647bf4d (diff) | |
download | tk-e536b3536ed366b76ba05f7b6bbfddbba3127965.zip tk-e536b3536ed366b76ba05f7b6bbfddbba3127965.tar.gz tk-e536b3536ed366b76ba05f7b6bbfddbba3127965.tar.bz2 |
Don't use -fvisibility=hidden with static libraries (--disable-shared)
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 2 |
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) |