buildtools: make sure we have no '+' in the version scripts
[metze/samba/wip.git] / buildtools / wafsamba / wafsamba.py
index 3ce44559292162e5e0c490407c99ab43114f3ac6..bf03973f88a0ebe780779bb274602927701d57e1 100644 (file)
@@ -203,7 +203,7 @@ def SAMBA_LIBRARY(bld, libname, source,
     if bld.env.HAVE_LD_VERSION_SCRIPT:
         vscript = "%s.vscript" % libname
         bld.SAMBA_GENERATOR(vscript,
-                            rule="echo %s \{ global: \*\; \}\; > ${TGT}" % version.replace("-","_").upper(),
+                            rule="echo %s \{ global: \*\; \}\; > ${TGT}" % version.replace("-","_").replace("+","_").upper(),
                             group='vscripts',
                             target=vscript)
         ldflags.append("-Wl,--version-script=%s/%s" % (bld.path.abspath(bld.env), vscript))