On Wed, Jul 19, 2000 at 10:02:55PM -0300, Alexandre Oliva wrote:
> On Jul 19, 2000, "Frank Ch. Eigler" <[EMAIL PROTECTED]> wrote:
>
> > Hi -
> > On Wed, Jul 19, 2000 at 07:10:13PM -0300, Alexandre Oliva wrote:
> >> [...]
> >> > libtool: link: cannot build libtool library `libfoo.la' from non-libtool
> >> > objects: /usr/local/lib/libbar.a
> >>
> >> Libtool is right. It can't be done portably, so libtool won't do it
> >> for you.
>
> > libtool would be more useful if it were not so indignant in
> > the face of non-portable functionality.
>
> If it weren't, developers that use only on GNU/Linux might not realize
> they're relying on features that are only available on a few
> platforms, and turn to us when users ask them why their package won't
> build on other platforms.
>
> Of course, we might support a switch such as --non-portable or --lax,
> so that libtool might attempt to use non-portable features, but I
> think none of the current maintainers have time to implement that (but
> I speak only for myself), so it would have to be an external
> contribution.
The version I have installed on my Linux box (1.3c 1.709), already
allows this but gives a warning:
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I.. -I../m4 -g -O2 `perl -MExtUtils::Embed -e ccopts` -c perl.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../m4 -g -O2
-Wp,-MD,.deps/perl.pp -Dbool=char -DHAS_BOOL -D_REENTRANT -DDEBIAN
-I/usr/local/include -I/usr/lib/perl5/5.005/i386-linux/CORE -c perl.c
-fPIC -DPIC -o perl.lo
/bin/sh ../libtool --mode=link gcc -g -O2 -no-undefined
-avoid-version -o perl.la -rpath /usr/local/libexec/m4 -module `perl
-MExtUtils::Embed -e ldopts` perl.lo ../m4/libm4.la
*** Warning: Linking the shared library perl.la against the
*** static library /usr/lib/perl5/5.005/i386-linux/auto/DynaLoader
*** /DynaLoader.a is not portable!
rm -fr .libs/perl.la .libs/perl.* .libs/perl.*
(cd . && ln -s perl.lo perl.o)
gcc -shared perl.lo -L/usr/local/lib
/usr/lib/perl5/5.005/i386-linux/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/5.005/i386-linux/CORE -lperl -lnsl -lndbm -lgdbm
-ldbm -ldb -ldl -lm -lc -lposix -lcrypt ../m4/.libs/libm4.so -lc
-Wl,-soname -Wl,perl.so -o .libs/perl.so
creating perl.la
(cd .libs && rm -f perl.la && ln -s ../perl.la perl.la)
Cheers,
Gary.
--
___ _ ___ __ _ mailto: [EMAIL PROTECTED]
/ __|__ _ _ ___ _| | / / | / /_ _ _ _ __ _| |_ __ _ ___ [EMAIL PROTECTED]
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
\___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page: /___/ /___/ gpg public key:
http://www.oranda.demon.co.uk http://www.oranda.demon.co.uk/key.asc