--- gold/configure.tgt.orig 2016-09-13 17:50:35.722024000 +0200 +++ gold/configure.tgt 2016-09-13 17:50:49.529056000 +0200 @@ -54,6 +54,9 @@ targ_size=32 targ_big_endian=false case "$targ" in + i?86-*-bsdsunix*) + targ_osabi=ELFOSABI_BSDSUNIX + ;; i?86-*-freebsd*) targ_osabi=ELFOSABI_FREEBSD ;; @@ -67,6 +70,9 @@ targ_extra_size=32 targ_big_endian=false case "$targ" in + x86_64-*-bsdsunix*) + targ_osabi=ELFOSABI_BSDSUNIX + ;; x86_64-*-freebsd*) targ_osabi=ELFOSABI_FREEBSD ;;