[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Libool picking the wrong library for dbus
From: |
Sandeep Puddupakkam (spuddupa) |
Subject: |
RE: Libool picking the wrong library for dbus |
Date: |
Wed, 16 Jul 2008 13:35:58 -0700 |
Peter,
Your suggestion worked. Since we build libdbus, I modified the libdbus
build to set libdir=/nobackup/spuddupa/nova/linkfarm/ppc/usr/lib in the
libdbus-1.la file.
Compiling upstart now works fine.
One question though.
Are *.la file only used for linking by libtool?
Since all the files in /nobackup/spuddupa/nova/linkfarm/ppc/* are copied
to the target hardware into the root directory.
The libdbus-1.la file on the target hardware (/usr/lib/libdbus-1.la)
would still have the
libdir=/nobackup/spuddupa/nova/linkfarm/ppc/usr/lib.
Thanks,
Sandeep
-----Original Message-----
From: Peter O'Gorman [mailto:address@hidden
Sent: Wednesday, July 16, 2008 7:53 AM
To: Sandeep Puddupakkam (spuddupa)
Cc: address@hidden
Subject: Re: Libool picking the wrong library for dbus
Sandeep Puddupakkam (spuddupa) wrote:
> *** Reposting with zipped (winzip) logfile***
>
> Hi,
>
> I am trying to cross-compile upstart for ppc.
>
> Upstart requires libdbus-1 which I compiled for ppc and it is located
in
> the directory
>
> /nobackup/spuddupa/nova/linkfarm/ppc/usr/lib
Thanks for posting the log file.
/nobackup/spuddupa/nova/linkfarm/ppc/usr/lib/libdbus-1.la contains:
libdir=/usr/lib
So libtool goes and looks in libdir for libdbus-1.so.
libtool does not do well building to a sysroot like this. You could
modify all the .la files in the root so that they contain the actual
location of the libraries in libdir.
Peter
--
Peter O'Gorman
http://pogma.com