diff options
Diffstat (limited to 'unix/configure')
-rwxr-xr-x | unix/configure | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/unix/configure b/unix/configure index 7d41649..e44463a 100755 --- a/unix/configure +++ b/unix/configure @@ -4380,13 +4380,13 @@ echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6 CFLAGS="$CFLAGS -fvisibility=hidden" -else - - cat >>confdefs.h <<\_ACEOF -#define NO_VIZ +#define MODULE_SCOPE extern _ACEOF + +else + hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -6001,6 +6001,7 @@ cat >>confdefs.h <<\_ACEOF #define MODULE_SCOPE __private_extern__ _ACEOF + tcl_cv_cc_visibility_hidden=yes fi @@ -6873,6 +6874,22 @@ fi fi + if test "$tcl_cv_cc_visibility_hidden" != yes; then + + +cat >>confdefs.h <<\_ACEOF +#define MODULE_SCOPE extern +_ACEOF + + +cat >>confdefs.h <<\_ACEOF +#define NO_VIZ +_ACEOF + + +fi + + if test "$SHARED_LIB_SUFFIX" = ""; then SHARED_LIB_SUFFIX='${VERSION}${SHLIB_SUFFIX}' |