From: Florian Weimer Date: Thu, 5 Oct 2017 12:34:26 +0000 (+0200) Subject: tst-gmon: Build with -fno-omit-frame-pointer X-Git-Tag: glibc-2.27~735 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c25125780083cbba22ed627756548efe282d1a0;p=thirdparty%2Fglibc.git 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 --- diff --git a/ChangeLog b/ChangeLog index 3e931f7d7d6..a332bad127d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-10-05 Florian Weimer + + * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer. + 2017-10-05 Stefan Liebler * sysdeps/s390/fpu/libm-test-ulps: Regenerated. diff --git a/gmon/Makefile b/gmon/Makefile index ea5d88412ad..79e29d188fd 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