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