[Mesa-dev] [PATCH] configure.ac: Remove -fstack-protector-strong from LLVM flags.

Emil Velikov emil.l.velikov at gmail.com
Fri May 9 19:01:17 PDT 2014


On 10/05/14 02:28, Vinson Lee wrote:
> -fstack-protector-strong is not supported by clang.
> 
> This patch fixes this build error on Fedora 20 with clang.
> 
>   CXX      gallivm/lp_bld_debug.lo
> clang: error: unknown argument: '-fstack-protector-strong'
> 
fwiw clang gained support for stack-protector-strong in february this year.
guessing that it should land with version 3.5.

-Emil

> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75010
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  configure.ac | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index c68db00..7649091 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1571,7 +1571,8 @@ strip_unwanted_llvm_flags() {
>  	-e 's/-fno-exceptions\>//g' \
>  	-e 's/-fomit-frame-pointer\>//g' \
>  	-e 's/-fvisibility-inlines-hidden\>//g' \
> -	-e 's/-fPIC\>//g'
> +	-e 's/-fPIC\>//g' \
> +	-e 's/-fstack-protector-strong\>//g'
>  }
>  
>  
> 



More information about the mesa-dev mailing list