bindings/python/wscript
changeset 7468 7b8dfd1b02f6
parent 7462 287082f2be5c
child 7470 234c01373116
--- a/bindings/python/wscript	Fri Aug 26 17:06:35 2011 -0400
+++ b/bindings/python/wscript	Wed Aug 31 06:23:28 2011 -0700
@@ -73,6 +73,12 @@
         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()