build: Add duplicate symbol checking as part of make test
[abartlet/samba.git/.git] / buildtools / wafsamba / wscript
index ecc2ae51f69ac4e21db530aa8112d9c02dc16f74..1a7f3eb69974625e903f314c6c7b92547063e884 100755 (executable)
@@ -121,6 +121,10 @@ def set_options(opt):
                   help=("check symbols in object files against project rules"),
                   action='store_true', dest='SYMBOLCHECK', default=False)
 
+    gr.add_option('--dup-symbol-check',
+                  help=("check for duplicate symbols in object files and system libs (must be configured with --enable-developer)"),
+                  action='store_true', dest='DUP_SYMBOLCHECK', default=False)
+
     gr.add_option('--why-needed',
                   help=("TARGET:DEPENDENCY check why TARGET needs DEPENDENCY"),
                   action='store', type='str', dest='WHYNEEDED', default=None)