From 958e39fc6a39ac1e4d02c4f066355c5b3e0c5acf Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 2 Jul 2012 13:34:35 -0400 Subject: [PATCH] Define NO_VIZ for zlib when gcc doesn't support symbol visibility attributes. --- configure | 4 ++++ configure.in | 3 +++ zlib/Makefile.in | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 40cbc4763..0118579f4 100755 --- a/configure +++ b/configure @@ -692,6 +692,7 @@ password_timeout timeout timedir iolog_dir +NO_VIZ PIE_CFLAGS PIE_LDFLAGS CROSS_COMPILING @@ -2897,6 +2898,7 @@ $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;} + # @@ -2966,6 +2968,7 @@ AUTH_DEF=passwd SUDO_NLS=disabled LT_LDEXPORTS="-export-symbols \$(shlib_exp)" LT_LDDEP="\$(shlib_exp)" +NO_VIZ= CHECKSHADOW=true shadow_defs= @@ -20158,6 +20161,7 @@ if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : else + NO_VIZ="-DNO_VIZ" if test -z "$GCC"; then case "$host" in *-*-hpux*) diff --git a/configure.in b/configure.in index d69dbad95..b848aabdc 100644 --- a/configure.in +++ b/configure.in @@ -76,6 +76,7 @@ AC_SUBST([COMPAT_TEST_PROGS]) AC_SUBST([CROSS_COMPILING]) AC_SUBST([PIE_LDFLAGS]) AC_SUBST([PIE_CFLAGS]) +AC_SUBST([NO_VIZ]) dnl dnl Variables that get substituted in docs (not overridden by environment) dnl @@ -185,6 +186,7 @@ AUTH_DEF=passwd SUDO_NLS=disabled LT_LDEXPORTS="-export-symbols \$(shlib_exp)" LT_LDDEP="\$(shlib_exp)" +NO_VIZ= dnl dnl Other vaiables @@ -3190,6 +3192,7 @@ AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [ LT_LDEXPORTS= LT_LDDEP= ], [ + NO_VIZ="-DNO_VIZ" if test -z "$GCC"; then case "$host" in *-*-hpux*) diff --git a/zlib/Makefile.in b/zlib/Makefile.in index 1d26f7d39..c14035aef 100644 --- a/zlib/Makefile.in +++ b/zlib/Makefile.in @@ -35,7 +35,7 @@ CPPFLAGS = -I. -I$(srcdir) CFLAGS = @CFLAGS@ # OS dependent defines -DEFS = @OSDEFS@ +DEFS = @OSDEFS@ @NO_VIZ@ #### End of system configuration section. #### -- 2.40.0