sparc test I had lying around
split cflags/ldflags into arch/optimisation flags

arch_cflags/arch_ldflags: These are necessary to compile valid code for a
                          certain target architecture
cflags/ldflags: These are optimisation flags
fix testcase depending on nonexistant functions