ARFLAGS needs to be overridden to make it work.