aboutsummaryrefslogtreecommitdiff
path: root/gmon
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-10-05 14:34:26 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-10-05 14:34:45 +0200
commit0c25125780083cbba22ed627756548efe282d1a0 (patch)
tree000a477d3236c5ea8b0deaf5fa302cfb3bea7b44 /gmon
parent7ea59e3e5da8a3e74e1fde51d6e404d1a7209d8e (diff)
downloadglibc-0c25125780083cbba22ed627756548efe282d1a0.zip
glibc-0c25125780083cbba22ed627756548efe282d1a0.tar.gz
glibc-0c25125780083cbba22ed627756548efe282d1a0.tar.bz2
tst-gmon: Build with -fno-omit-frame-pointer
If glibc is built with -fomit-frame-pointer to undo the effect of configuring GCC with --enable-frame-pointer, using -pg by itself results in a build failure: gcc: error: -pg and -fomit-frame-pointer are incompatible
Diffstat (limited to 'gmon')
-rw-r--r--gmon/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmon/Makefile b/gmon/Makefile
index ea5d884..79e29d1 100644
--- a/gmon/Makefile
+++ b/gmon/Makefile
@@ -36,7 +36,7 @@ endif
# The mcount code won't work without a frame pointer.
CFLAGS-mcount.c := -fno-omit-frame-pointer
-CFLAGS-tst-gmon.c := -pg
+CFLAGS-tst-gmon.c := -fno-omit-frame-pointer -pg
LDFLAGS-tst-gmon := $(no-pie-ldflag)
CRT-tst-gmon := $(csu-objpfx)gcrt1.o
tst-gmon-ENV := GMON_OUT_PREFIX=$(objpfx)tst-gmon.data