Add -O3 for greater optimization.

This commit is contained in:
Anders Rytter Hansen 2025-02-14 00:00:59 +01:00
commit 1b016f19c8
2 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ Name: mesa
Summary: Mesa graphics libraries
%global ver 24.3.4
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
Release: 13.clang.skylake%{?dist}
Release: 14.clang.skylake%{?dist}
License: MIT AND BSD-3-Clause AND SGI-B-2.0
URL: http://www.mesa3d.org
@ -413,7 +413,7 @@ export MESON_PACKAGE_CACHE_DIR="%{cargo_registry}/"
# Disable LTO for now
%define _lto_cflags %{nil}
CFLAGS="$CFLAGS -march=skylake -mtune=skylake" CXXFLAGS="$CXXFLAGS -march=skylake -mtune=skylake" %meson \
CFLAGS="$CFLAGS -march=skylake -mtune=skylake -O3" CXXFLAGS="$CXXFLAGS -march=skylake -mtune=skylake -O3" %meson \
-Dplatforms=x11,wayland \
-Dosmesa=true \
--buildtype=release \

View file

@ -12,7 +12,7 @@
Summary: Xwayland
Name: xorg-x11-server-Xwayland
Version: 24.1.5
Release: 11.clang%{?dist}
Release: 13.clang.skylake%{?dist}
URL: http://www.x.org
%if 0%{?gitdate}
@ -103,7 +103,7 @@ necessary for developing Wayland compositors using Xwayland.
%autosetup -S git_am -n %{pkgname}-%{?gitdate:%{commit}}%{!?gitdate:%{version}}
%build
CFLAGS="-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=skylake -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" %meson \
CFLAGS="$CFLAGS -march=skylake -mtune=skylake -O3" CXXFLAGS="$CXXFLAGS -march=skylake -mtune=skylake -O3" %meson \
%{?gitdate:-Dxwayland=true -D{xorg,xnest,xvfb,udev}=false} \
-Ddefault_font_path=%{default_font_path} \
-Dbuilder_string="Build ID: %{name} %{version}-%{release}" \