logo       

Re: Libtool for multiple libs in one source package: msg#00188

linux.debian.devel.mentors

Subject: Re: Libtool for multiple libs in one source package

I have had a similar problem and solved it by exporting a LIBRARY_PATH
variable during the install step :

replacing
$(MAKE) install ...
by
export LIBRARY_PATH=`pwd`/debian/tmp/usr/lib; $(MAKE) install ...

NOTE : LIBRARY_PATH not LD_LIBRARY_PATH.

Hope this help,
Christophe

On Tue, Jun 25, 2002 at 03:58:11PM -0700, Ben Darnell wrote:
> I'm working on the new pilot-link packages, and having problems
> installing the libraries from scratch (i.e. when a previous build of the
> libraries is not already in /usr/lib). What is the correct way to
> specify the correct path to get the relinking step to work without
> breaking the installation?
>
> Thanks,
> -Ben
>
> Relevant portion of output from make install:
> /bin/sh ../libtool --mode=install /usr/bin/install -c libpisock++.la
> /home/bgda
> rnel/src/pilot-link-0.10.99/debian/tmp/usr/lib/libpisock++.la
> libtool: install: warning: relinking `libpisock++.la'
> (cd /home/bgdarnel/src/pilot-link-0.10.99/libpisock++; /bin/sh ../libtool
> --mode
> =relink c++ -g -O2 -o libpisock++.la -rpath /usr/lib -export-dynamic
> -version-in
> fo 0:0:0 address.lo appInfo.lo datebook.lo dlp.lo iambicExpense.lo memo.lo
> todo.
> lo ../libpisock/libpisock.la)
> gcc -shared address.lo appInfo.lo datebook.lo dlp.lo iambicExpense.lo
> memo.lo t
> odo.lo -L/usr/lib -lpisock -Wl,-soname -Wl,libpisock++.so.0 -o
> .libs/libpisoc
> k++.so.0.0.0 -L/usr/lib -lpisock
> /usr/bin/ld: cannot find -lpisock
>
>
> Makefile.am:
> NCLUDES = \
> -I../include \
> -I$(top_srcdir)/include
>
> lib_LTLIBRARIES = libpisock++.la
>
> libpisock___la_SOURCES = \
> address.cc \
> appInfo.cc \
> datebook.cc \
> dlp.cc \
> iambicExpense.cc\
> memo.cc \
> todo.cc
>
> libpisock___la_LIBADD = \
> $(top_builddir)/libpisock/libpisock.la
>
> libpisock___la_LDFLAGS = \
> -export-dynamic -version-info
> $(PISOCKPP_CURRENT):$(PISOCKPP_REVISION):$
> (PISOCKPP_AGE)
>
>
>
> --
> Ben Darnell ben@xxxxxxxxxxxxxxxxx
> http://thoughtstream.org
> Finger bgdarnel@xxxxxxxxxx for PGP/GPG key 1024D/1F06E509
>



--
Christophe Barbé <christophe.barbe@xxxxxxxxx>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E

Cats seem go on the principle that it never does any harm to ask for
what you want. --Joseph Wood Krutch

Attachment: pgpobCLS4z3P2.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise