From f0c447ec666ef6ba11073e92848f6e3b55870e5f Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Wed, 31 Aug 2011 06:23:28 -0700 Subject: [PATCH] Bug 1253 - disable python bindings if static build selected --- bindings/python/wscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bindings/python/wscript b/bindings/python/wscript index 54e75972b..19b45c086 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -73,6 +73,12 @@ def configure(conf): conf.report_optional_feature("python", "Python Bindings", False, "disabled by user request") return + # Disable python in static builds (bug #1253) + if ((conf.env['ENABLE_STATIC_NS3']) or \ + (conf.env['ENABLE_SHARED_AND_STATIC_NS3'])): + conf.report_optional_feature("python", "Python Bindings", False, + "bindings incompatible with static build") + return enabled_modules = list(conf.env['NS3_ENABLED_MODULES']) enabled_modules.sort()