Avoid half-written sys.o files
Use .SECONDARY instead of temporary names to auto-delete incomplete sys.o
Merge pull request #8518 from eschnett/sys.o

Avoid half-written sys.o files