--- config/ltconfig.orig 2012-10-12 14:05:48 UTC +++ config/ltconfig @@ -1364,8 +1364,8 @@ else hardcode_shlibpath_var=no ;; - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd*) + # FreeBSD 3 and greater and bsdsunix uses gcc -shared to do shared libraries. + bsdsunix* | freebsd*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes @@ -1902,6 +1902,29 @@ cygwin* | mingw*) lt_cv_dlopen_libs= ;; +bsdsunix*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` + version_type=bsdsunix-$objformat + case "$version_type" in + bsdsunix-elf*) + deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' + file_magic_cmd=/usr/bin/file + file_magic_test_file=`echo /lib/libc.so*` + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' + soname_spec='${libname}${release}.so$major' + need_version=no + need_lib_prefix=no + ;; + bsdsunix-*) + deplibs_check_method=unknown + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + ;; + freebsd1*) dynamic_linker=no ;;