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