summaryrefslogtreecommitdiff
path: root/package/boost
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-06-14 22:17:15 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-06-14 22:17:30 +0200
commit28445738e7a9b26dd937ace7c8a3e6624819d2e5 (patch)
treeffd78dbf7d1a2b516053c0834151f25dfc32172e /package/boost
parentfdde79b72739e826fbab15da62aeac31bbda0996 (diff)
boost: allow static build
Diffstat (limited to 'package/boost')
-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 \