--- ld/emultempl/elf32.em.orig 2016-08-03 07:36:54 UTC +++ ld/emultempl/elf32.em @@ -578,9 +578,9 @@ gld${EMULATION_NAME}_add_sysroot (const EOF case ${target} in - *-*-freebsd* | *-*-dragonfly*) + *-*-freebsd* | *-*-bsdsunix* | *-*-dragonfly*) fragment < #else @@ -637,7 +637,7 @@ gld${EMULATION_NAME}_check_ld_elf_hints return gld${EMULATION_NAME}_search_needed (ld_elf_hints, &needed, force); } EOF - # FreeBSD + # FreeBSD/BSDSUniX/DragonFly ;; *-*-linux-* | *-*-k*bsd*-* | *-*-gnu*) @@ -1277,12 +1277,12 @@ EOF fi if [ "x${USE_LIBPATH}" = xyes ] ; then case ${target} in - *-*-freebsd* | *-*-dragonfly*) + *-*-freebsd* | *-*-bsdsunix* | *-*-dragonfly*) fragment <