[vlc-devel] [PATCH] build: Undef _FORTIFY_SOURCE before setting it

Luca Barbato lu_zero at gentoo.org
Sun Nov 3 19:00:38 CET 2013


On 29/09/13 08:32, Luca Barbato wrote:
> It is commonly present as part of the compiler defaults in some
> distributions.
> ---
> 
> I forgot to send it since looong ago...
> 
>  configure.ac | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 3f6ab28..8da9722 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -54,7 +54,13 @@ dnl Check for tools
>  dnl
>  AC_PROG_CC_C99
>  AC_USE_SYSTEM_EXTENSIONS
> -AC_DEFINE([_FORTIFY_SOURCE], 2, [Define to 2 to get glibc warnings.])
> +AH_VERBATIM([_FORTIFY_SOURCE],[
> +#ifdef _FORTIFY_SOURCE
> +#/**/undef/**/ _FORTIFY_SOURCE
> +#define _FORTIFY_SOURCE 2
> +#endif
> +])
> +dnl AC_DEFINE([_FORTIFY_SOURCE], 2, [Define to 2 to get glibc warnings.])
>  AC_DEFINE([_FILE_OFFSET_BITS], 64, [Define to 64 for large files support.])
>  AC_DEFINE([_REENTRANT],, [Define to expose reentrant functions.])
>  AC_DEFINE([_THREAD_SAFE],, [Same as _REENTANT for some other OSes.])
> --
> 1.8.3.2
> 

Ping =P




More information about the vlc-devel mailing list