From 1de87b920c679a5b839603a12bcff80a2db14740 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 15 May 2002 14:52:10 +0000 Subject: [PATCH] Don't build the static lib by default [SVN r13906] --- build/Jamfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/build/Jamfile b/build/Jamfile index 1f44ff7f..79702105 100644 --- a/build/Jamfile +++ b/build/Jamfile @@ -88,13 +88,17 @@ local CPP_SOURCES = init_function module_builder objects cross_module errors ; -lib boost_python_static : ../src/$(CPP_SOURCES).cpp - # requirements - : $(BOOST_PYTHON_INCLUDES) - true - BOOST_PYTHON_STATIC_LIB=1 +# Only build the static library if a user really insists on it! +if $(BOOST_PYTHON_STATIC_LIB) +{ + lib boost_python_static : ../src/$(CPP_SOURCES).cpp + # requirements + : $(BOOST_PYTHON_INCLUDES) + true + BOOST_PYTHON_STATIC_LIB=1 [ difference $(PYTHON_PROPERTIES) : BOOST_PYTHON_DYNAMIC_LIB ] - ; + ; +} dll boost_python # $(SUFDLL[1])