diff --git a/configure b/configure index cbd66642f1c..b443aa9ec71 100755 --- a/configure +++ b/configure @@ -5618,6 +5618,10 @@ if test "$_have_x86" = yes ; then ;; *) append_var NASMFLAGS "-f elf" + if $LD $LDFLAGS -Wl,--version | grep 'GNU gold'; then + # gold throws an internal error when nasm uses dwarf, force older stabs in this case + append_var NASMFLAGS "-F stabs" + fi ;; esac _nasm=yes