summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-12-13 22:33:09 (GMT)
committernijtmans <nijtmans>2010-12-13 22:33:09 (GMT)
commit93ef2ca8ce830fe5a8a6126835ea3f5d269e2e6c (patch)
tree2a927d7f467322e7d1b5dce8fc02c49e157b966a /unix
parentb8aefcc068ba0ea1d0259b9321757135e1315167 (diff)
downloadtcl-93ef2ca8ce830fe5a8a6126835ea3f5d269e2e6c.zip
tcl-93ef2ca8ce830fe5a8a6126835ea3f5d269e2e6c.tar.gz
tcl-93ef2ca8ce830fe5a8a6126835ea3f5d269e2e6c.tar.bz2
[Bug 3135271] Link error due to hidden symbols (CentOS 4.2)
Diffstat (limited to 'unix')
-rwxr-xr-xunix/configure5
-rw-r--r--unix/tcl.m41
2 files changed, 6 insertions, 0 deletions
diff --git a/unix/configure b/unix/configure
index 816e681..5debd0a 100755
--- a/unix/configure
+++ b/unix/configure
@@ -6545,6 +6545,11 @@ echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6
else
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_VIZ
+_ACEOF
+
hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index cfaffe8..c699535 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1056,6 +1056,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
AS_IF([test $tcl_cv_cc_visibility_hidden = yes], [
CFLAGS="$CFLAGS -fvisibility=hidden"
], [
+ AC_DEFINE(NO_VIZ, [], [No visibility attribute])
hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
AC_TRY_LINK([
extern __attribute__((__visibility__("hidden"))) void f(void);