summaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>2025-07-14 12:43:30 +0300
committerSam James <sam@gentoo.org>2025-07-14 10:57:53 +0100
commit3d780a44ebdb3fb780e04682df50da1145bcd98a (patch)
tree9ca8500892621f861b47d803172a3c90f31e3b9c /Makeconfig
parent3360913c37f5c3a0c8737b76321fd5ce2608fcd5 (diff)
configure: Add --enable-sframe option
Enable SFrame stack track information. The --enable-sframe option allows the glibc build to compile with SFrame stack track information. Thus, enabling glibc's backtrace to work within glibc. Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> Reviewed-by: DJ Delorie <dj@redhat.com> Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makeconfig b/Makeconfig
index 1f8c912011..e29a2db058 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -1030,6 +1030,12 @@ endif
# Filter out 64 bit time_t flags if compiler defines it by default.
+cflags += $(no-time-bits-source)
+# Enable SFrame while compiling for stack backtracing.
+ifeq ($(enable-gsframe),yes)
+as-sframe = -Wa,--gsframe
+endif
++cflags += $(as-sframe)
+
# Each sysdeps directory can contain header files that both will be
# used to compile and will be installed. Each can also contain an
# include/ subdirectory, whose header files will be used to compile
@@ -1178,7 +1184,7 @@ endif
ifndef ASFLAGS
ASFLAGS := $(filter -g% -fdebug-prefix-map=%,$(CFLAGS))
endif
-override ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu)
+override ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu) $(as-sframe)
move-if-change = $(SHELL) $(..)scripts/move-if-change