]> git.ipfire.org Git - thirdparty/glibc.git/commit
dso-ordering-test.py: Put all sources in one directory [BZ #28550]
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 6 Nov 2021 21:13:27 +0000 (14:13 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 15 Nov 2021 19:53:40 +0000 (11:53 -0800)
commitb4bbedb1e75737a80bcc3d53d6eef1fbe0b5f4d5
tree26c0ede48f3c92bba2cd0fd0ff31cb203d7a4d02
parent54816ae98d57930b7c945f17485714a5574bfe47
dso-ordering-test.py: Put all sources in one directory [BZ #28550]

Put all sources for DSO sorting tests in the dso-sort-tests-src directory
and compile test relocatable objects with

$(objpfx)tst-dso-ordering1-dir/tst-dso-ordering1-a.os: $(objpfx)dso-sort-tests-src/tst-dso-ordering1-a.c
$(compile.c) $(OUTPUT_OPTION)

to avoid random $< values from $(before-compile) when compiling test
relocatable objects with

$(objpfx)%$o: $(objpfx)%.c $(before-compile); $$(compile-command.c)
compile-command.c = $(compile.c) $(OUTPUT_OPTION) $(compile-mkdep-flags)
compile.c = $(CC) $< -c $(CFLAGS) $(CPPFLAGS)

for 3 "make -j 28" parallel builds on a machine with 112 cores at the
same time.

This partially fixes BZ #28550.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
scripts/dso-ordering-test.py