[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems using libtool



On Wed, 4 Apr 2001, Daniel Jacobowitz wrote:

> On Wed, Apr 04, 2001 at 01:59:18PM -0400, Dale Scheetz wrote:
> > I recently added the .la file to libgmp3-dev, and being totally ignorant
> > about the ramifications have been responding to various bug reports.
> > 
> > Apparently the .la file must be installed using libtool, but the manpage
> > is rather incomplete about what happens when you supply --mode=install
> > option. libtool --help is a bit more help, but what it says isn't what
> > happens. The implication of the help is that what follows the mode option
> > is either the word install or cp and that all that follows is passed as
> > options to that command. Apparently libtool does more than that. When I
> > try to use it in the rules file I get:
> > 
> > install -m 644 ./.libs/libgmp.a debian/tmp/usr/lib/.
> > libtool --mode=install \
> >    install -m 644 ./.libs/libgmp.la `pwd`/debian/tmp/usr/lib/.
> > install -m 644 ./.libs/.libs/libgmp.so.3.1.1
> > /home/dwarf/build/libgmp3-3.1.1/debian/tmp/usr/lib/./libgmp.so.3.1.1
> > install: cannot stat `./.libs/.libs/libgmp.so.3.1.1': No such file or
> > directory
> > make: *** [binary] Error 1
> 
> Try losing the .libs in the libtool call?  In fact, if it uses libtool,
> you should probably be doing all three lines with libtool.
> 
> Along the lines of:
>   libtool --mode=install -m 644 libgmp.a `pwd`/debian/tmp/usr/lib/.

But libgmp.a installs just fine using the install command without libtool.

The only reason I'm doing this is the bug report that declares the .la
file is unusable unless installed by libtool.

I'll try removing the .lib path element and see what I get.

I'm just a bit bugged that when asking for the .la file to be installed
libtool wants to install a bunch of other "unrelated" things like the .so
file. I'm just looking for some control ;-)

Thanks,

Dwarf
--
_-_-_-_-_-   Author of "Dwarf's Guide to Debian GNU/Linux"  _-_-_-_-_-_-
_-                                                                    _-
_- aka   Dale Scheetz                   Phone:   1 (850) 656-9769     _-
_-       Flexible Software              11000 McCrackin Road          _-
_-       e-mail:  dwarf@polaris.net     Tallahassee, FL  32308        _-
_-                                                                    _-
_-_-_-_-_-  Released under the GNU Free Documentation License   _-_-_-_-
              available at: http://www.polaris.net/~dwarf/



Reply to: