I agree with Andrew Hughes. On Wed, Jan 30, 2019 at 9:27 AM Andrew Hughes <gnu.and...@redhat.com> wrote:
> > I'm aware of the benefits of using gold, and also occasional issues with > it, but that's not the debate here. It's already perfectly possible to > build with gold by using --with-ldflags="-fuse-ld=gold", as I've been > doing for quite a while, or setting the system ld to be gold. What you're > asking is that this option should be forced onto every build. > > My experience suggests that compiler flags should be kept to a minimum, > and tested for where possible. One of the great benefits of OpenJDK finally > having a configure system is that we can now check whether flags work > before enabling them (e.g. my own changes to support GCC 6). What seems > to work wonderfully on one's local machine often breaks in a variety > of different > ways when exposed to the variety of build environments out there. > > I guess you could add this with an --enable-gold option (on by default) and > testing that the flag works in configure. I do have to wonder though if it > is worth the effort and possible risks. > It's not!