diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2011-04-06 14:51:57 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2011-04-06 14:51:57 (GMT) |
| commit | d4f823777203fddec3c4e09d3418b56addbb1f8a (patch) | |
| tree | 3d13794e12e1ee15347be0e543ef3b522c41bfa0 /unix/configure | |
| parent | 94cb0432ec98c35996036f5cbfa5beaa48b59533 (diff) | |
| download | tcl-d4f823777203fddec3c4e09d3418b56addbb1f8a.zip tcl-d4f823777203fddec3c4e09d3418b56addbb1f8a.tar.gz tcl-d4f823777203fddec3c4e09d3418b56addbb1f8a.tar.bz2 | |
Don't use -fvisibility=hidden with static libraries (--disable-shared)
Diffstat (limited to 'unix/configure')
| -rwxr-xr-x | unix/configure | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/unix/configure b/unix/configure index 8701f7e..4fdddd4 100755 --- a/unix/configure +++ b/unix/configure @@ -6479,7 +6479,7 @@ if test "${tcl_cv_cc_visibility_hidden+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test "$GCC" = yes; then + if test "$GCC" = yes -a "$SHARED_BUILD" = 1; then hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fvisibility=hidden -Werror" cat >conftest.$ac_ext <<_ACEOF @@ -6550,11 +6550,6 @@ _ACEOF else - -cat >>confdefs.h <<\_ACEOF -#define NO_VIZ -_ACEOF - hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ |
