if self.env.HAVE_LD_VERSION_SCRIPT and getattr(self, 'version_script', ''):
self.env.append_value('LINKFLAGS', "-Wl,--version-script=%s" %
- os.path.join(self.path.abspath(self.env), self.version_script))
+ self.version_script)
self.version_script = None
# also make the .inst file depend on the vscript
instname = bld.env.shlib_PATTERN % (bundled_name + '.inst')
bld.add_manual_dependency(bld.path.find_or_declare(instname), bld.path.find_or_declare(vscript))
+ vscript = os.path.join(bld.path.abspath(bld.env), vscript)
bld.SET_BUILD_GROUP(group)
t = bld(
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,
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'