[Buildroot] [PATCH 2/7] Add staging libraries directories to -L in external case
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Thu May 6 18:20:02 UTC 2010
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 <thomas.petazzoni at free-electrons.com>
---
package/Makefile.in | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/package/Makefile.in b/package/Makefile.in
index 0bec9a1..2ed7f42 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
#########################################################################
--
1.6.3.3
More information about the buildroot
mailing list