diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-10-05 14:34:26 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-10-05 14:34:45 +0200 |
commit | 0c25125780083cbba22ed627756548efe282d1a0 (patch) | |
tree | 000a477d3236c5ea8b0deaf5fa302cfb3bea7b44 | |
parent | 7ea59e3e5da8a3e74e1fde51d6e404d1a7209d8e (diff) | |
download | glibc-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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gmon/Makefile | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 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 |