[patch v2 2/2] stdio: Add more setvbuf tests
Andreas Schwab
schwab@suse.de
Mon Apr 7 08:40:39 GMT 2025
On Apr 03 2025, DJ Delorie wrote:
> Andreas Schwab <schwab@suse.de> writes:
>> There is a warning from make:
>>
>> ../Rules:244: target '.../stdio-common/tst-setvbuf2' given more than once in the same rule
>> ../Rules:244: target '.../stdio-common/tst-setvbuf2-ind' given more than once in the same rule
>
> I know. I couldn't find any other way to tell the build that a given
> test was both a container test and needed internal access.
The target list that contains both test-internal and test-container
could be sorted to remove the duplicates.
diff --git a/Rules b/Rules
index c8adc00008..ae23070845 100644
--- a/Rules
+++ b/Rules
@@ -241,7 +241,7 @@ $(addprefix $(objpfx),$(binaries-shared-notests)): %: %.o \
endif
ifneq "$(strip $(binaries-shared-tests))" ""
-$(addprefix $(objpfx),$(binaries-shared-tests)): %: %.o \
+$(addprefix $(objpfx),$(sort $(binaries-shared-tests))): %: %.o \
$(link-extra-libs-tests) \
$(sort $(filter $(common-objpfx)lib%,$(link-libc))) \
$(addprefix $(csu-objpfx),start.o) $(+preinit) $(+postinit)
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list