From: Thomas Petazzoni Date: Thu, 6 May 2010 17:58:45 +0000 (+0200) Subject: Add staging libraries directories to -L in external case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2eb4b09529a891e07d09ddf36c483b28edcd19ae;p=buildroot.git Add staging libraries directories to -L in external case In order to solve issues of libtool trying to link target components against host libraries, it seems that specifying -L$(STAGING_DIR)/lib and -L$(STAGING_DIR)/usr/lib works. Signed-off-by: Thomas Petazzoni --- diff --git a/package/Makefile.in b/package/Makefile.in index 0bec9a1c27..2ed7f423c5 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -98,6 +98,7 @@ else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y) TARGET_CFLAGS+=--sysroot $(STAGING_DIR)/ TARGET_CXXFLAGS=$(TARGET_CFLAGS) TARGET_LDFLAGS=--sysroot $(STAGING_DIR)/ +TARGET_LDFLAGS+=-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib endif #########################################################################