Blame SOURCES/0001-temporally-replace-g3-with-default-g.patch

34077d
From 22dcbe8897b4f3a4e42a606c26dd69f0239ae424 Mon Sep 17 00:00:00 2001
e29f4b
From: Honggang Li <honli@redhat.com>
34077d
Date: Tue, 29 Oct 2019 16:16:22 +0800
e29f4b
Subject: [PATCH] temporally replace '-g3' with default '-g'
e29f4b
e29f4b
rpm debugedit might corrupt the debug file strings when source files
e29f4b
have been build with gcc -g3 which generates a .debug_macro section
e29f4b
which shares strings with the .debuginfo section.
e29f4b
e29f4b
https://bugzilla.redhat.com/show_bug.cgi?id=1630926
e29f4b
e29f4b
When bz1630926 got fixed, we no longer need this workaround.
e29f4b
e29f4b
Signed-off-by: Honggang Li <honli@redhat.com>
e29f4b
---
e29f4b
 buildflags.mak        | 6 +++---
e29f4b
 compat/buildflags.mak | 4 ++--
e29f4b
 2 files changed, 5 insertions(+), 5 deletions(-)
e29f4b
e29f4b
diff --git a/buildflags.mak b/buildflags.mak
34077d
index 10ec288..4c597e1 100644
e29f4b
--- a/buildflags.mak
e29f4b
+++ b/buildflags.mak
34077d
@@ -163,9 +163,9 @@ ifneq (,${HFI_BRAKE_DEBUG})
e29f4b
   BASECFLAGS += -DHFI_BRAKE_DEBUG
e29f4b
 endif
e29f4b
 ifneq (,${PSM_DEBUG})
e29f4b
-  BASECFLAGS += -O -g3 -DPSM_DEBUG -D_HFI_DEBUGGING -funit-at-a-time -Wp,-D_FORTIFY_SOURCE=2
e29f4b
+  BASECFLAGS += -O -g -DPSM_DEBUG -D_HFI_DEBUGGING -funit-at-a-time -Wp,-D_FORTIFY_SOURCE=2
e29f4b
 else
e29f4b
-  BASECFLAGS += -O3 -g3
e29f4b
+  BASECFLAGS += -O3 -g
e29f4b
 endif
e29f4b
 ifneq (,${PSM_COVERAGE}) # This check must come after PSM_DEBUG to override optimization setting
e29f4b
   BASECFLAGS += -O -fprofile-arcs -ftest-coverage
34077d
@@ -196,7 +196,7 @@ endif
34077d
 
34077d
 BASECFLAGS += -fpic -fPIC -D_GNU_SOURCE
e29f4b
 
e29f4b
-ASFLAGS += -g3 -fpic
e29f4b
+ASFLAGS += -g -fpic
e29f4b
 
e29f4b
 BASECFLAGS += ${OPA_CFLAGS}
e29f4b
 
e29f4b
diff --git a/compat/buildflags.mak b/compat/buildflags.mak
e29f4b
index b448e4e..ab501d5 100644
e29f4b
--- a/compat/buildflags.mak
e29f4b
+++ b/compat/buildflags.mak
e29f4b
@@ -84,10 +84,10 @@ BASECFLAGS +=-Wall $(WERROR)
e29f4b
 
e29f4b
 BASECFLAGS += -fpic -fPIC
e29f4b
 
e29f4b
-ASFLAGS += -g3 -fpic
e29f4b
+ASFLAGS += -g -fpic
e29f4b
 
e29f4b
 ifeq (${CCARCH},icc)
e29f4b
-    BASECFLAGS += -O3 -g3
e29f4b
+    BASECFLAGS += -O3 -g
e29f4b
     LDFLAGS += -static-intel
e29f4b
 else
e29f4b
 	ifeq (${CCARCH},gcc)
e29f4b
-- 
34077d
2.21.0
e29f4b