summaryrefslogtreecommitdiff
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
parent7ea59e3e5da8a3e74e1fde51d6e404d1a7209d8e (diff)
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
-rw-r--r--ChangeLog4
-rw-r--r--gmon/Makefile2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e931f7d7d..a332bad127 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-10-05 Florian Weimer <fweimer@redhat.com>
+
+ * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
+
2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
* sysdeps/s390/fpu/libm-test-ulps: Regenerated.
diff --git a/gmon/Makefile b/gmon/Makefile
index ea5d88412a..79e29d188f 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