Pass -32/-64 to the assembler when building for sparc/sparc64.
Give the linker the right ELF type for SPARC targets.