[Buildroot] Libtool relinking problem
Hans-Christian Egtvedt
hcegtvedt at atmel.com
Tue Feb 12 06:11:53 UTC 2008
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