diff options
author | Slava Barinov <v.barinov@samsung.com> | 2019-04-10 17:02:38 +0300 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2019-05-01 23:50:39 +0000 |
commit | 149bc610e755c46e5a4b6f3780fa64340e385627 (patch) | |
tree | 43bb9b22cce55e4ae46dc952d19158823358ea35 | |
parent | f409ef598976a4fd4f74ab4695478b1fc1651c06 (diff) | |
download | mesa-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.spec | 5 |
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 \ |