summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2019-04-10 17:02:38 +0300
committerSooChan Lim <sc1.lim@samsung.com>2019-05-01 23:50:39 +0000
commit149bc610e755c46e5a4b6f3780fa64340e385627 (patch)
tree43bb9b22cce55e4ae46dc952d19158823358ea35
parentf409ef598976a4fd4f74ab4695478b1fc1651c06 (diff)
downloadmesa-149bc610e755c46e5a4b6f3780fa64340e385627.tar.gz
mesa-149bc610e755c46e5a4b6f3780fa64340e385627.tar.bz2
mesa-149bc610e755c46e5a4b6f3780fa64340e385627.zip
Fix LTO build error
Change-Id: I3179cd9ffd34431748913c0f7d3742918327731d Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rw-r--r--packaging/mesa.spec5
1 files changed, 4 insertions, 1 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
index 91790d1ff0f..84e107f5345 100644
--- a/packaging/mesa.spec
+++ b/packaging/mesa.spec
@@ -62,7 +62,10 @@ cp %{SOURCE1001} .
cp %{SOURCE1002} .
%build
-%{?asan:/usr/bin/gcc-unforce-options}
+%{?asan:%gcc-unforce-options}
+export CFLAGS=$(echo $CFLAGS | sed -e '/-flto/s/as-needed/no-as-needed/')
+export CXXFLAGS=$(echo $CXXFLAGS | sed -e '/-flto/s/as-needed/no-as-needed/')
+
./autogen.sh --prefix=%{_prefix} \
--libdir=%{_libdir} \
--disable-glx \