predelnik added a comment. Well making a link to lld as ld.gold doesn't work as a workaround anyway. Looks like the only "workaround" is to use clang instead of gcc since these options are added by gcc on ubuntu for some obscure reason. https://reviews.llvm.org/D37733