[Buildroot] Libtool relinking problem

John Voltz john.voltz at gmail.com
Tue Feb 12 16:38:11 UTC 2008


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 at 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
>
>



More information about the buildroot mailing list