[pacman-dev] [PATCH] use the default visibility attribute when debugging is enabled, i.e. all symbols will be visible

Dave Reisner d at falconindy.com
Wed Aug 1 14:07:41 EDT 2012


On Wed, Aug 01, 2012 at 08:53:05PM +0300, Barbu Paul - Gheorghe wrote:
> Signed-off-by: Barbu Paul - Gheorghe <barbu.paul.gheorghe at gmail.com>
> ---

Ok... why?

>  m4/acinclude.m4 | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/m4/acinclude.m4 b/m4/acinclude.m4
> index f57a515..2829845 100644
> --- a/m4/acinclude.m4
> +++ b/m4/acinclude.m4
> @@ -83,7 +83,8 @@ AC_DEFUN([GCC_VISIBILITY_CC],[
>      if test $visibility_cv_cc = yes; then
>        AC_DEFINE([ENABLE_VISIBILITY_CC], 1, [Define if symbol visibility C support is enabled.])
>      fi
> -    AM_CONDITIONAL([ENABLE_VISIBILITY_CC], test "x$visibility_cv_cc" = "xyes")
> +    AM_CONDITIONAL([ENABLE_VISIBILITY_CC],
> +                   test "x$visibility_cv_cc" = "xyes" -a "x$debug" != "xyes")
>    fi
>  ])
>  
> -- 
> Barbu Paul - Gheorghe
> Common sense is not so common - Voltaire
> Visit My GitHub profile to see my open-source projects - https://github.com/paullik
> 
> 


More information about the pacman-dev mailing list