summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/boost/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/package/boost/Makefile b/package/boost/Makefile
index 294dc37a2..bf85e2b50 100644
--- a/package/boost/Makefile
+++ b/package/boost/Makefile
@@ -130,6 +130,12 @@ PYTHON_INCLUDE:="`find ${STAGING_TARGET_DIR}/usr/include/ -maxdepth 1 -type d -n
PYTHON_LIB:= "`find ${STAGING_TARGET_DIR}/usr/lib/ -maxdepth 1 -type d -name "python*" | head -1`"
USER_JAM:= ${WRKBUILD}/tools/build/user-config.jam
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS)$(ADK_TARGET_BINFMT_FLAT),y)
+LINKMODE:= static
+else
+LINKMODE:= shared
+endif
+
pre-build:
@echo "build bjam..."
cd $(WRKBUILD)/tools/build/src/engine; ./build.sh gcc
@@ -145,8 +151,8 @@ endif
-d 2 \
target-os=linux \
variant=release \
- link=shared \
- runtime-link=shared \
+ link=$(LINKMODE) \
+ runtime-link=$(LINKMODE) \
architecture=$(BOOST_ARCH) \
$(BOOST_ABI) \
binary-format=elf \