buildtools: make sure we have no '+' in the version scripts
authorStefan Metzmacher <metze@samba.org>
Wed, 8 Dec 2010 11:40:59 +0000 (12:40 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 8 Dec 2010 15:11:48 +0000 (16:11 +0100)
This happens if '--git-local-changes' was used.

metze

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))