waf-python: make the pyext flag add the pyembed features for libraries
authorAndrew Tridgell <tridge@samba.org>
Thu, 21 Oct 2010 06:44:32 +0000 (17:44 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 21 Oct 2010 08:03:27 +0000 (19:03 +1100)
this is rather strange, but we get build errors without it. There may
be a bug in the waf python tool, or I may misunderstand how to use it

buildtools/wafsamba/wafsamba.py

index 280ffd6ee24cf548224f8563d900e35322e4d475..710871555580bf3e93664ea032c1f49e1c4c47d7 100644 (file)
@@ -184,7 +184,9 @@ def SAMBA_LIBRARY(bld, libname, source,
     features = 'cc cshlib symlink_lib install_lib'
     if target_type == 'PYTHON':
         features += ' pyext'
-    if pyembed:
+    if pyext or pyembed:
+        # this is quite strange. we should add pyext feature for pyext
+        # but that breaks the build. This may be a bug in the waf python tool
         features += ' pyembed'
     if abi_file:
         features += ' abi_check'