wafsamba: Specify full vscript path so non-autogenerated files are possible, too.
[obnox/samba/samba-obnox.git] / source4 / heimdal_build / wscript_build
index f8afe96f1e9e7a90dcd29ed7f14fb7babab6fdbd..205b9c1359332803b9e18f7b500865f25b37f3d0 100644 (file)
@@ -236,7 +236,9 @@ def HEIMDAL_LIBRARY(libname, source, deps, vnum, includes='', cflags='',
         bundled_name = libname
     version = "%s_%s" % (Utils.g_module.APPNAME, Utils.g_module.VERSION)
 
-    if bld.env.HAVE_LD_VERSION_SCRIPT:
+    if version_script:
+        version_script = heimdal_path(version_script)
+    elif bld.env.HAVE_LD_VERSION_SCRIPT:
         version_script = "%s.vscript" % libname
         namespace = version.replace("-","_").replace("+","_").upper(),
         HEIMDAL_GENERATOR(version_script,
@@ -244,6 +246,7 @@ def HEIMDAL_LIBRARY(libname, source, deps, vnum, includes='', cflags='',
                           group='vscripts',
                           target=version_script)
         deps.append(version_script)
+        version_script = os.path.join(bld.path.abspath(bld.env), version_script)
 
     features = 'cc cshlib symlink_lib install_lib'