configure.ac: Remove -fstack-protector-strong from LLVM flags.
authorVinson Lee <vlee@freedesktop.org>
Sat, 10 May 2014 01:21:59 +0000 (18:21 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 21 May 2014 23:07:00 +0000 (16:07 -0700)
-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'

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75010
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
configure.ac

index 4e4d76155fbb066d33a0b78571ca37f1ce01a478..b6e8049a405ed197f86a83f0a9b7ef0c47736332 100644 (file)
@@ -1591,7 +1591,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'
 }