]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
tst-gmon: Build with -fno-omit-frame-pointer
authorFlorian Weimer <fweimer@redhat.com>
Thu, 5 Oct 2017 12:34:26 +0000 (14:34 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 5 Oct 2017 12:34:45 +0000 (14:34 +0200)
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

ChangeLog
gmon/Makefile

index 3e931f7d7d64d914aa81f425f24dbd95eca8dd05..a332bad127d5245b54495cddbad0264d27a29f79 100644 (file)
--- 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.
index ea5d88412adde02107f764aacc06698b1c84391f..79e29d188fd91515464587eaa191ed057195cece 100644 (file)
@@ -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