i dont know if there's a policy on this, but we've been treating the shared libraries in the Gentoo/FreeBSD port like Linux shared libraries. we control this based upon the vendor field in the toolchain tuple. -mike
signature.asc
Description: This is a digitally signed message part.
2008-02-16 Diego Pettenò <[EMAIL PROTECTED]>
* libltdl/m4/libtool.m4: Treat Gentoo/FreeBSD shareds libs as Linux.
Index: libltdl/m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/m4/libtool.m4,v
retrieving revision 1.136
diff -u -p -r1.136 libtool.m4
--- libltdl/m4/libtool.m4 16 Feb 2008 03:46:06 -0000 1.136
+++ libltdl/m4/libtool.m4 16 Feb 2008 08:46:45 -0000
@@ -2285,7 +2285,13 @@ freebsd* | dragonfly*)
*) objformat=elf ;;
esac
fi
- version_type=freebsd-$objformat
+ # Handle Gentoo/FreeBSD as it was Linux
+ case $host_vendor in
+ gentoo)
+ version_type=linux ;;
+ *)
+ version_type=freebsd-$objformat ;;
+ esac
case $version_type in
freebsd-elf*)
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
@@ -2296,6 +2302,12 @@ freebsd* | dragonfly*)
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
need_version=yes
;;
+ linux)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ need_lib_prefix=no
+ need_version=no
+ ;;
esac
shlibpath_var=LD_LIBRARY_PATH
case $host_os in
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool
