--- ld/emultempl/elf32.em.orig 2015-07-21 08:20:58 UTC +++ ld/emultempl/elf32.em @@ -559,9 +559,9 @@ gld${EMULATION_NAME}_add_sysroot (const EOF case ${target} in - *-*-freebsd* | *-*-dragonfly*) + *-*-freebsd* | *-*-bsdsunix* | *-*-dragonfly*) fragment < #else @@ -618,7 +618,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*) @@ -1227,12 +1227,12 @@ EOF fi if [ "x${USE_LIBPATH}" = xyes ] ; then case ${target} in - *-*-freebsd* | *-*-dragonfly*) + *-*-freebsd* | *-*-bsdsunix* | *-*-dragonfly*) fragment <