pass flags to linker in test