build: add python library object reduction
authorAndrew Tridgell <tridge@samba.org>
Tue, 30 Mar 2010 11:39:18 +0000 (22:39 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:20 +0000 (20:27 +1000)
This reduces the install size of s4 from 393M down to 132M on my
system. We had a lot of duplicate code in our python modules!

buildtools/wafsamba/samba_deps.py

index f9e69b6ca6224072abf7ecfd83c9ae2f6367e0da..ef0bc793ae2d71e53e8ea2e977f71de711722cc1 100644 (file)
@@ -603,7 +603,7 @@ def calculate_final_deps(bld, tgt_list, loops):
                     dependency_loop(loops, t, t2.sname)
                     t2.final_libs.remove(t.sname)
 
-    for type in ['BINARY']:
+    for type in ['BINARY', 'PYTHON']:
         for t in tgt_list:
             if t.samba_type != type: continue
             # if we will indirectly link to a target then we don't need it