Mac doesn't have the -whole-archive option for ld.