Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Libtool relinking problem
@ 2008-02-12  1:53 John Voltz
  2008-02-12  2:12 ` Dan Nicolaescu
  2008-02-12  6:11 ` Hans-Christian Egtvedt
  0 siblings, 2 replies; 4+ messages in thread
From: John Voltz @ 2008-02-12  1:53 UTC (permalink / raw)
  To: buildroot

I'm wondering if anyone else has noticed problems when installing some
libraries to the staging_dir, sometimes libtool will place a  random
dependency reference as /usr/lib/xxx.la instead of
$(STAGING_DIR)/usr/lib/xxx.la.

This appears to be caused by the libtool re-linking during install.
Anybody know what to do to fix this? I tried adding
LDFLAGS="-L$(STAGING_DIR)/usr/lib" to make install, but it didn't
help.

Thanks,

John Voltz

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Libtool relinking problem
  2008-02-12  1:53 [Buildroot] Libtool relinking problem John Voltz
@ 2008-02-12  2:12 ` Dan Nicolaescu
  2008-02-12  6:11 ` Hans-Christian Egtvedt
  1 sibling, 0 replies; 4+ messages in thread
From: Dan Nicolaescu @ 2008-02-12  2:12 UTC (permalink / raw)
  To: buildroot

"John Voltz" <john.voltz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
writes:

  > I'm wondering if anyone else has noticed problems when installing some
  > libraries to the staging_dir, sometimes libtool will place a  random
  > dependency reference as /usr/lib/xxx.la instead of
  > $(STAGING_DIR)/usr/lib/xxx.la.
  > 
  > This appears to be caused by the libtool re-linking during install.
  > Anybody know what to do to fix this? I tried adding

I noticed this too, and I also noticed that it only happens when
selecting the "Generic Development System" option.  I never had time to
trace down what goes wrong when doing that though... 
Hope this helps.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Libtool relinking problem
  2008-02-12  1:53 [Buildroot] Libtool relinking problem John Voltz
  2008-02-12  2:12 ` Dan Nicolaescu
@ 2008-02-12  6:11 ` Hans-Christian Egtvedt
  2008-02-12 16:38   ` John Voltz
  1 sibling, 1 reply; 4+ messages in thread
From: Hans-Christian Egtvedt @ 2008-02-12  6:11 UTC (permalink / raw)
  To: buildroot

On Mon, 2008-02-11 at 20:53 -0500, John Voltz wrote:
> I'm wondering if anyone else has noticed problems when installing some
> libraries to the staging_dir, sometimes libtool will place a  random
> dependency reference as /usr/lib/xxx.la instead of
> $(STAGING_DIR)/usr/lib/xxx.la.
> 

Unsure why some libraries fail to install with correct path while others
manage to do $(DESTDIR)/$(PREFIX)/lib/libxxx.la.

I usually add a $(SED) to the Buildroot Makefile to correct the
libxxx.la file.

$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libxxx.la

> This appears to be caused by the libtool re-linking during install.
> Anybody know what to do to fix this? I tried adding
> LDFLAGS="-L$(STAGING_DIR)/usr/lib" to make install, but it didn't
> help.
> 

Fiddling with LDFLAGS, CFLAGS, etc to solve an issue is seldom the right
solution.

-- 
With kind regards,
Hans-Christian Egtvedt, Applications Engineer

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Libtool relinking problem
  2008-02-12  6:11 ` Hans-Christian Egtvedt
@ 2008-02-12 16:38   ` John Voltz
  0 siblings, 0 replies; 4+ messages in thread
From: John Voltz @ 2008-02-12 16:38 UTC (permalink / raw)
  To: buildroot

The sed command in Makefile.autotools.in is not terminated with the
letter g. So it only fixes one problem in the line!

John

On Feb 12, 2008 1:11 AM, Hans-Christian Egtvedt <hcegtvedt@atmel.com> wrote:
> On Mon, 2008-02-11 at 20:53 -0500, John Voltz wrote:
> > I'm wondering if anyone else has noticed problems when installing some
> > libraries to the staging_dir, sometimes libtool will place a  random
> > dependency reference as /usr/lib/xxx.la instead of
> > $(STAGING_DIR)/usr/lib/xxx.la.
> >
>
> Unsure why some libraries fail to install with correct path while others
> manage to do $(DESTDIR)/$(PREFIX)/lib/libxxx.la.
>
> I usually add a $(SED) to the Buildroot Makefile to correct the
> libxxx.la file.
>
> $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libxxx.la
>
> > This appears to be caused by the libtool re-linking during install.
> > Anybody know what to do to fix this? I tried adding
> > LDFLAGS="-L$(STAGING_DIR)/usr/lib" to make install, but it didn't
> > help.
> >
>
> Fiddling with LDFLAGS, CFLAGS, etc to solve an issue is seldom the right
> solution.
>
> --
> With kind regards,
> Hans-Christian Egtvedt, Applications Engineer
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-12 16:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-12  1:53 [Buildroot] Libtool relinking problem John Voltz
2008-02-12  2:12 ` Dan Nicolaescu
2008-02-12  6:11 ` Hans-Christian Egtvedt
2008-02-12 16:38   ` John Voltz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox