X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=lib%2Freplace%2Fwafsamba.py;h=4cf8902de6d53e3b6d1ca0115181d3a373196f23;hp=58b8e79e35aa47126e1e9835cd79b60d39c07c6e;hb=06940d57967039792d945a4999ccd31dfe4b83c4;hpb=eab4d4598ef08c89f36180f8b9027444867e32bc diff --git a/lib/replace/wafsamba.py b/lib/replace/wafsamba.py index 58b8e79e35a..4cf8902de6d 100644 --- a/lib/replace/wafsamba.py +++ b/lib/replace/wafsamba.py @@ -220,7 +220,11 @@ def ADD_DEPENDENCIES(bld, name, deps): # extract out the system dependencies sysdeps = [] localdeps = [] + cache = BUILD_CACHE(bld, 'EMPTY_LIBS') for d in list2: + # strip out any dependencies on empty libraries + if d in cache: + continue libname = 'LIB_%s' % d.upper() if libname in bld.env: sysdeps.append(d) @@ -253,6 +257,12 @@ def SAMBA_LIBRARY(bld, libname, source_list, # print "Declaring SAMBA_LIBRARY %s" % libname #print "SAMBA_LIBRARY '%s' with deps '%s'" % (libname, deps) + # remember empty libraries, so we can strip the dependencies + if (source_list == '') or (source_list == []): + cache = BUILD_CACHE(bld, 'EMPTY_LIBS') + cache[libname] = True + return + (sysdeps, deps) = ADD_DEPENDENCIES(bld, libname, deps) ilist = bld.SAMBA_LIBRARY_INCLUDE_LIST(deps) + bld.SUBDIR(bld.curdir, include_list)