diff options
author | nijtmans <nijtmans> | 2010-12-13 22:37:19 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-12-13 22:37:19 (GMT) |
commit | d5812bb181278dc349a8f28a4585e9ec12ae42d0 (patch) | |
tree | 3615eb2eee6100f1e6da69ee6ef164041c008664 /unix | |
parent | 1163db68f3c029d63c522ada68ab47396fe37aba (diff) | |
download | tk-d5812bb181278dc349a8f28a4585e9ec12ae42d0.zip tk-d5812bb181278dc349a8f28a4585e9ec12ae42d0.tar.gz tk-d5812bb181278dc349a8f28a4585e9ec12ae42d0.tar.bz2 |
[Bug 3135271] Link error due to hidden symbols (CentOS 4.2)
Diffstat (limited to 'unix')
-rwxr-xr-x | unix/configure | 5 | ||||
-rw-r--r-- | unix/tcl.m4 | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/unix/configure b/unix/configure index 1405680..b1570a7 100755 --- a/unix/configure +++ b/unix/configure @@ -4382,6 +4382,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); |