From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans-Christian Egtvedt Date: Tue, 12 Feb 2008 07:11:53 +0100 Subject: [Buildroot] Libtool relinking problem In-Reply-To: <46a136670802111753w4b6a7fbar93030a13b101eb28@mail.gmail.com> References: <46a136670802111753w4b6a7fbar93030a13b101eb28@mail.gmail.com> Message-ID: <1202796713.26099.5.camel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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