[patch/rfc] setting version type based on vendor
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 - 1.136 +++ libltdl/m4/libtool.m4 16 Feb 2008 08:46:45 - @@ -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
changes between linking with shared objects and static libraries
Hello I am working on making it more easy to make shared libraries (Patch #6416) and using them for AmigaOS4. Now my big problem comes... when we link our executables using shared objects, do we need to include -use-dynld -Lsobjs: or -use-dynld -L/sobjs to the line. Is it in libtool, autoconf or automake that I need to make changes to make this work? -- best regards, hnl_dk - Henning Nielsen Lund µA1-C (IBM PowerPC 750 FX V2.2 @ 800MHz), 256MB RAM, NEC ND-3500A DVD/CD RW, Samsung SP1604N 160GB PATA Harddisk drive, Acer AL1721 17 TFT, modified Tyan M2042 1-3 PCI Riser... ___ http://lists.gnu.org/mailman/listinfo/libtool