From 6c35c254c2b4ee12b578d87d011d3517ac338b15 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 17 Jan 2018 10:14:18 +0100 Subject: [PATCH] Add _GLIBCXX_ASSERTIONS to CFLAGS/CXXFLAGS (#1515858) --- macros | 2 +- redhat-rpm-config.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/macros b/macros index b84899f..d0bb5fc 100644 --- a/macros +++ b/macros @@ -155,7 +155,7 @@ %_annotated_build 1 %_annotated_cflags %{?_annotated_build:%{_annobin_cflags}} -%__global_compiler_flags -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches %{_hardened_cflags} %{_annotated_cflags} +%__global_compiler_flags -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches %{_hardened_cflags} %{_annotated_cflags} %__global_cflags %{optflags} %__global_cxxflags %{optflags} diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 286c357..777c547 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 74 +Version: 75 Release: 1%{?dist} # No version specified. License: GPL+ @@ -153,6 +153,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Wed Jan 17 2018 Florian Weimer - 75-1 +- Add _GLIBCXX_ASSERTIONS to CFLAGS/CXXFLAGS (#1515858) + * Mon Jan 15 2018 Igor Gnatenko - 74-1 - Remove Requires: cmake-rpm-macros