wafsamba: allow --bundled-libraries=ALL,!popt
[samba.git] / buildtools / wafsamba / samba_bundled.py
index b936cdb01b89288124a6051da7129f71951f3bbf..23a0f092608d805c5b6cfe0fab068a2034f8c346 100644 (file)
@@ -82,6 +82,8 @@ def LIB_MAY_BE_BUNDLED(conf, libname):
 def LIB_MUST_BE_BUNDLED(conf, libname):
     if libname in conf.env.BUNDLED_LIBS:
         return True
+    if '!%s' % libname in conf.env.BUNDLED_LIBS:
+        return False
     if 'ALL' in conf.env.BUNDLED_LIBS:
         return True
     return False