On Fri, Feb 02, 2024 at 04:57 PM +1000, Nicholas Piggin [off-list ref] wrote:
Using all prerequisites for the source file results in the build
dying on the second time around with:
gcc: fatal error: cannot specify ‘-o’ with ‘-c’, ‘-S’ or ‘-E’ with multiple files
This is due to auxinfo.h becoming a prerequisite after the first
build recorded the dependency.
Use the first prerequisite for this recipe.
Fixes: f2372f2d49135 ("(arm|powerpc|s390x): Makefile: add `%.aux.o` target")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
arm/Makefile.common | 2 +-
[…snip]
Thanks a ton for fixing this!
Reviewed-by: Marc Hartmayer <redacted>
--
Kind regards / Beste Grüße
Marc Hartmayer
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Wolfgang Wendt
Geschäftsführung: David Faller
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294