the version_script handling relied on the directory layout. This makes
it independent of the directory structure
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
return str
return str.split(None)
-def heimdal_path(p):
- return os.path.join("../heimdal", p)
+def heimdal_path(p, absolute=False):
+ hpath = os.path.join("../heimdal", p)
+ if not absolute:
+ return hpath
+ return os.path.normpath(os.path.join(bld.curdir, hpath))
def heimdal_paths(ps):
return [heimdal_path(p) for p in to_list(ps)]
ldflags = ldflags,
vars = [version],
private_library = bundled_build,
- version_script = heimdal_path(version_script),
+ version_script = heimdal_path(version_script, absolute=True),
)