boost.threads would generate a host lib rather than a target lib. Following instructions for crosscompiling here: http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html
It appears that as long as the version string in user-config.jam matches the toolset version string, it works. for example, a user-config.jam with: using gcc : foobar : arm-none-linux-gnueabi-g++ ; would be invoked with this to crosscompile with version foobar: bjam toolset=gcc-foobar Signed-off-by: Jon Ringle <j...@ringle.org> --- rules/boost.make | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rules/boost.make b/rules/boost.make index 46614e7..1476123 100644 --- a/rules/boost.make +++ b/rules/boost.make @@ -64,7 +64,8 @@ BOOST_JAM := \ -sZLIB_LIBPATH=$(SYSROOT)/usr/lib \ variant=$(subst $(space),$(comma),$(strip $(JAM_LIB_DEBUG) $(JAM_LIB_RELEASE))) \ threading=$(subst $(space),$(comma),$(strip $(JAM_LIB_SINGLE) $(JAM_LIB_MULTI))) \ - link=shared + link=shared \ + toolset=gcc-$(PTXCONF_ARCH_STRING) JAM_MAKE_OPT := \ $(PARALLELMFLAGS) \ @@ -101,7 +102,7 @@ $(STATEDIR)/boost.prepare: @$(call targetinfo) cd $(BOOST_DIR) && ./bootstrap.sh $(BOOST_CONF_OPT) @cd $(BOOST_DIR) && \ - echo "using gcc : `$(BOOST_PATH) $(CROSS_CXX) -dumpversion` : $(CROSS_CXX) ;" > $(BOOST_DIR)/user-config.jam + echo "using gcc : $(PTXCONF_ARCH_STRING) : $(CROSS_CXX) ;" > $(BOOST_DIR)/user-config.jam @echo "all:" > $(BOOST_DIR)/Makefile @echo " @$(BOOST_JAM) $(JAM_MAKE_OPT)" >> $(BOOST_DIR)/Makefile @echo "install:" >> $(BOOST_DIR)/Makefile -- 1.7.0.4 -- ptxdist mailing list ptxdist@pengutronix.de