Gcc cares about the order of the flags.