summaryrefslogtreecommitdiffstats
path: root/rules/boost.make
diff options
context:
space:
mode:
authorJon Ringle <jon@ringle.org>2011-07-21 02:42:34 -0400
committerRobert Schwebel <r.schwebel@pengutronix.de>2011-07-21 16:49:42 +0200
commit95d0d43504303bc94b9639d9cef8002bc20027ba (patch)
tree207b4045838aef349877b643fdd7fda59222fec5 /rules/boost.make
parent6fa97e96e7a2fd9514b2c04af4b2a8d9354a1d5b (diff)
downloadptxdist-95d0d43504303bc94b9639d9cef8002bc20027ba.tar.gz
ptxdist-95d0d43504303bc94b9639d9cef8002bc20027ba.tar.xz
boost: fix crosscompiling
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 <jon@ringle.org> Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'rules/boost.make')
-rw-r--r--rules/boost.make5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules/boost.make b/rules/boost.make
index 46614e7c7..14761233d 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