From bb1fba22009d6f563e80bbdde1ab4ff271fcecdeba84aa98c51bc83d49cacb36 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Sun, 8 Aug 2021 08:54:14 +0000 Subject: [PATCH] - fixed build on %ix86 by removing "-flto=auto" from optflags for cpp OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1054 --- Mesa-drivers.changes | 6 ++++++ Mesa-drivers.spec | 4 ++++ Mesa.changes | 6 ++++++ Mesa.spec | 4 ++++ 4 files changed, 20 insertions(+) diff --git a/Mesa-drivers.changes b/Mesa-drivers.changes index 704bf46..f504d84 100644 --- a/Mesa-drivers.changes +++ b/Mesa-drivers.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Aug 8 08:52:15 UTC 2021 - Stefan Dirsch + +- fixed build on %ix86 by removing "-flto=auto" from optflags for + cpp + ------------------------------------------------------------------- Thu Aug 5 15:51:18 UTC 2021 - Stefan Dirsch diff --git a/Mesa-drivers.spec b/Mesa-drivers.spec index 5f5cd2b..a5be0ef 100644 --- a/Mesa-drivers.spec +++ b/Mesa-drivers.spec @@ -860,7 +860,11 @@ egl_platforms=x11,wayland %endif -Db_ndebug=true \ -Dc_args="%{optflags}" \ +%ifarch %ix86 + -Dcpp_args="$(echo %{optflags}|sed 's/-flto=auto//')" +%else -Dcpp_args="%{optflags}" +%endif %meson_build diff --git a/Mesa.changes b/Mesa.changes index 704bf46..f504d84 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Aug 8 08:52:15 UTC 2021 - Stefan Dirsch + +- fixed build on %ix86 by removing "-flto=auto" from optflags for + cpp + ------------------------------------------------------------------- Thu Aug 5 15:51:18 UTC 2021 - Stefan Dirsch diff --git a/Mesa.spec b/Mesa.spec index acbc075..7c2c975 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -859,7 +859,11 @@ egl_platforms=x11,wayland %endif -Db_ndebug=true \ -Dc_args="%{optflags}" \ +%ifarch %ix86 + -Dcpp_args="$(echo %{optflags}|sed 's/-flto=auto//')" +%else -Dcpp_args="%{optflags}" +%endif %meson_build