waf: Fix uselib_store for system libsubunit.
[ira/wip.git] / buildtools / wafsamba / samba_bundled.py
index 95d0c7d82e38bf67f29bc200ea4a8ca1597dcacc..a29b3aa220974a09638dbe166b0e39f55f33649e 100644 (file)
@@ -127,7 +127,7 @@ def CHECK_BUNDLED_SYSTEM_PKG(conf, libname, minversion='0.0.0',
 
     if conf.check_cfg(package=pkg,
                       args='"%s >= %s" --cflags --libs' % (pkg, minversion),
-                      msg=msg):
+                      msg=msg, uselib_store=libname.upper()):
         conf.SET_TARGET_TYPE(libname, 'SYSLIB')
         conf.env[found] = True
         if implied_deps: