summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2010-03-04 22:59:26 (GMT)
committernijtmans <nijtmans@noemail.net>2010-03-04 22:59:26 (GMT)
commit2c55177b22ef040772b52b2f7ca5a0a2bd4133a9 (patch)
tree7293f092f28eb93fd0b8e24f4fed0d1bae9b7d3e /unix
parentf60878ecb631d3f7b82d5e07a5f3aa84d9c48ad6 (diff)
downloadtk-2c55177b22ef040772b52b2f7ca5a0a2bd4133a9.zip
tk-2c55177b22ef040772b52b2f7ca5a0a2bd4133a9.tar.gz
tk-2c55177b22ef040772b52b2f7ca5a0a2bd4133a9.tar.bz2
Don't use -fvisibility=hidden for cygwin.
Make tkTestWinProcs const FossilOrigin-Name: 4ff9dc6922b7df450c15c1ea2cf4da5f55d5f801
Diffstat (limited to 'unix')
-rwxr-xr-xunix/configure2
-rw-r--r--unix/tcl.m42
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])