From 86b98a4de58adde1f5647f106da3597270e8c93f Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Mon, 10 Jun 2024 23:19:19 +0200 Subject: [PATCH] Enable LTO --- mysql8.0.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/mysql8.0.spec b/mysql8.0.spec index 45c6f31..59e176f 100644 --- a/mysql8.0.spec +++ b/mysql8.0.spec @@ -602,6 +602,7 @@ cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} \ -DCMAKE_C_FLAGS="%{optflags}%{?with_debug: -fno-strict-overflow -Wno-unused-result -Wno-unused-function -Wno-unused-but-set-variable}" \ -DCMAKE_CXX_FLAGS="%{optflags}%{?with_debug: -fno-strict-overflow -Wno-unused-result -Wno-unused-function -Wno-unused-but-set-variable}" \ -DCMAKE_EXE_LINKER_FLAGS="-pie %{build_ldflags}" \ + -DWITH_LTO=ON \ %{?with_debug: -DWITH_DEBUG=1} \ %{?with_debug: -DMYSQL_MAINTAINER_MODE=0} \ -DTMPDIR=/var/tmp \