libtool patches should really be sent to the libtool list (or their bug
reporting address), so that fixes you make benefit all programs using
libtool.
It is good that you worked out what was causing the problem though.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 29 Feb 2000, Scott Presnell wrote:
> James Henstridge wrote:
> >
> > Do you know if inter library dependencies are supported on your platform
> > (eg. If you link to libXt will it automatically link your app to libX11
> > for instance?).
>
> Apparently (I don't know with authority).
>
> Here is the deal: The -module flag triggers this failure to build the shared
> libraries, though to "do the right thing" -module seems to be an an appropriate
> flag for the situation. Other packages i've built which construct so's for dynamic
> loading haven't used -module so this is the first time I've seen this problem.
>
> So I loaded my belly with a food and coffee and dived headlong into libtool to
> figure it out. From the comments in ltconfig and libtool this is the "safe"
> way to do things. For the record of the list here is the patch.
>
> With this patch, libtool correctly builds shared libraries (without whining).
> (to use the patch, patch ltconfig and rerun configure, this will remake
> libtool).
>
> There is still the issue of recognizing the correct so version number.
> the format libfoo.so.x.y does seem to be correct for NetBSD. Is recognizing
> this format something under the control of dia, or is it something else that needs
> to be fixed in libtool, or in the Makefile...
>
> I imagine one would see the same problem with OpenBSD and older versions of FreeBSD.
>
> Thanks.
>
> - Scott
>
>
> *** ltconfig.orig Tue Feb 29 08:07:55 2000
> --- ltconfig Tue Feb 29 08:05:05 2000
> ***************
> *** 1918,1923 ****
> --- 1918,1926 ----
> library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
> finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
> dynamic_linker='NetBSD (a.out) ld.so'
> + deplibs_check_method='file_magic NetBSD/i386 demand paged shared library'
> + file_magic_cmd=/usr/bin/file
> + file_magic_test_file=`echo /usr/lib/libc.so*`
> else
> library_names_spec='${libname}${release}.so$versuffix
>${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
> soname_spec='${libname}${release}.so$major'
>