From 28445738e7a9b26dd937ace7c8a3e6624819d2e5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 14 Jun 2016 22:17:15 +0200 Subject: boost: allow static build --- package/boost/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'package/boost/Makefile') 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 \ -- cgit v1.2.3