summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-23 17:05:47 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-23 17:10:14 +1100
commit0a6e0edc047e6ec4b4fe9483f9961fff6b7061f9 (patch)
tree8dd75cfc8969a4f2d7906e2b598375a6b9636536 /buildtools/wafsamba
parent2296871f0c3b2c2d874c8b33034d608b89c5fd6f (diff)
downloadsamba-0a6e0edc047e6ec4b4fe9483f9961fff6b7061f9.tar.gz
samba-0a6e0edc047e6ec4b4fe9483f9961fff6b7061f9.tar.bz2
samba-0a6e0edc047e6ec4b4fe9483f9961fff6b7061f9.zip
build: don't display expected duplicate symbols
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/symbols.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/buildtools/wafsamba/symbols.py b/buildtools/wafsamba/symbols.py
index 0408d61b29..0d0af79d06 100644
--- a/buildtools/wafsamba/symbols.py
+++ b/buildtools/wafsamba/symbols.py
@@ -453,9 +453,14 @@ def symbols_dupcheck(task):
Logs.info("Checking for duplicate symbols")
for sym in bld.env.symbol_map:
- subsystems = bld.env.symbol_map[sym]
+ subsystems = set(bld.env.symbol_map[sym])
if len(subsystems) == 1:
continue
+
+ if sym in ['main', '_init', '_fini', 'init_samba_module', 'samba_init_module', 'ldb_init_module' ]:
+ # these are expected to be in many subsystems
+ continue
+
# if all of them are in system libraries, we can ignore them. This copes
# with the duplication between libc, libpthread and libattr
all_syslib = True