diff options
author | nijtmans <nijtmans> | 2010-03-04 22:59:27 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-03-04 22:59:27 (GMT) |
commit | 41fa75473e0f106977fb2f344679921e13ae8c77 (patch) | |
tree | 7293f092f28eb93fd0b8e24f4fed0d1bae9b7d3e /unix | |
parent | b4c9b3eb8ad6997dcb49b9f459aaee9fda8cb161 (diff) | |
download | tk-41fa75473e0f106977fb2f344679921e13ae8c77.zip tk-41fa75473e0f106977fb2f344679921e13ae8c77.tar.gz tk-41fa75473e0f106977fb2f344679921e13ae8c77.tar.bz2 |
Don't use -fvisibility=hidden for cygwin.
Make tkTestWinProcs const
Diffstat (limited to 'unix')
-rwxr-xr-x | unix/configure | 2 | ||||
-rw-r--r-- | unix/tcl.m4 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure index 382c284..1d76799 100755 --- a/unix/configure +++ b/unix/configure @@ -4315,7 +4315,7 @@ if test "${tcl_cv_cc_visibility_hidden+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fvisibility=hidden" + hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fvisibility=hidden -Werror" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF diff --git a/unix/tcl.m4 b/unix/tcl.m4 index c5045c7..d6769af 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1052,7 +1052,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ AC_CACHE_CHECK([if compiler supports visibility "hidden"], tcl_cv_cc_visibility_hidden, [ - hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fvisibility=hidden" + hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fvisibility=hidden -Werror" AC_TRY_COMPILE(,, tcl_cv_cc_visibility_hidden=yes, tcl_cv_cc_visibility_hidden=no) CFLAGS=$hold_cflags]) |