On Solaris, libtool does not allow me to do the following:

> /bin/sh ../libtool --mode=link gcc  -g -O2  -o libfoo.la  -rpath
/usr/local/lib foo.lo /usr/local/lib/libbar.a
libtool: link: cannot build libtool library `libfoo.la' from non-libtool
objects: /usr/local/lib/libbar.a

and yet the Solaris linker allows this:

> /usr/ccs/bin/ld -G -h libfoo.so.0 -o .libs/libfoo.so.0.0.0  foo.lo
-lc /usr/local/lib/libbar.a

Is there a special flag/option that I need to add to get this
functionality?
--
Thanks,
Paul


Reply via email to