--- libjava/shlibpath.m4.orig 2013-01-04 12:49:55 UTC +++ libjava/shlibpath.m4 @@ -228,16 +228,16 @@ dgux*) shlibpath_var=LD_LIBRARY_PATH ;; -freebsd*) +bsdsunix* | freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in - freebsd-elf*) + bsdsunix-elf*|freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; - freebsd-*) + bsdsunix-*|freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;;