diff --git a/mysql.spec b/mysql.spec index 828d0348be09f9c8b19de12201440c7d3def5620..958ce71fd5abb2b3a74c04f2028a5bccbdf74251 100644 --- a/mysql.spec +++ b/mysql.spec @@ -72,7 +72,7 @@ Summary: MySQL client programs and shared libraries Name: mysql Version: 8.0.45 -Release: 1%{?with_debug:.debug}%{?dist} +Release: 2%{?with_debug:.debug}%{?dist} License: GPL-2.0-or-later AND LGPL-2.1-only AND BSL-1.0 AND BSD-2-Clause URL: http://www.mysql.com Source0: https://cdn.mysql.com/Downloads/MySQL-8.0/mysql-boost-%{version}.tar.gz @@ -351,6 +351,8 @@ cp %{SOURCE1} %{SOURCE10} %{SOURCE11} %{SOURCE12} \ -DREPRODUCIBLE_BUILD=OFF \ -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_C_FLAGS_RELWITHDEBINFO:STRING="%{optflags} -g -DNDEBUG" \ + -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="%{optflags} -g -DNDEBUG" \ -DCMAKE_EXE_LINKER_FLAGS="-pie %{build_ldflags}" \ %{?with_debug: -DWITH_DEBUG=1} \ %{?with_debug: -DMYSQL_MAINTAINER_MODE=0} \ @@ -833,6 +835,10 @@ fi %endif %changelog +* Tue Mar 24 2026 xionghuluo - 8.0.45-2 +- [Type] enhancement +- [DESC] Pass CMAKE_C_FLAGS_RELWITHDEBINFO / CMAKE_CXX_FLAGS_RELWITHDEBINFO to align RelWithDebInfo flags with %{optflags} (-g -DNDEBUG) for PGO/instrumented builds + * Wed Jan 28 2026 Wang Guodong - 8.0.45-1 - Upgrade to 8.0.45 - fix CVE-2026-21936, CVE-2026-21937, CVE-2026-21941, CVE-2026-21948, CVE-2026-21964,