This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Test for profiling support (_mcount/gprof)


On 08/15/2017 06:32 PM, Joseph Myers wrote:
> The new test in tests-special needs to be conditional on 
> run-built-tests=yes; right now it makes run-built-tests=no cross tests, as 
> with build-many-glibcs.py, fail as it tries to run tst-gmon natively.

Oops.  Like this?

Thanks,
Florian
gmon: Run tst-gmon-prof only for run-built-tests=yes

2017-08-15  Florian Weimer  <fweimer@redhat.com>

	* gmon/Makefile (tests-special): Add tst-gmon-prof only if
	run-built-tests.

diff --git a/gmon/Makefile b/gmon/Makefile
index 947e6b5905..39f11acec2 100644
--- a/gmon/Makefile
+++ b/gmon/Makefile
@@ -42,7 +42,9 @@ CFLAGS-tst-gmon.c := -pg
 LDFLAGS-tst-gmon := $(no-pie-ldflag)
 CRT-tst-gmon := $(csu-objpfx)gcrt1.o
 tst-gmon-ENV := GMON_OUT_PREFIX=$(objpfx)tst-gmon.data
+ifeq ($(run-built-tests),yes)
 tests-special += $(objpfx)tst-gmon-gprof.out
+endif
 
 include ../Rules
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]