source = [],
target = bundled_name,
depends_on = depends_on,
- samba_ldflags = ldflags,
+ samba_ldflags = ldflags,
samba_deps = deps,
samba_includes = includes,
local_include = local_include,
#!/usr/bin/env python
-import os, Utils, Build
+import os, Utils
from samba_utils import SET_TARGET_TYPE
from samba_autoconf import CURRENT_CFLAGS
name=name)
-def HEIMDAL_LIBRARY(libname, source, deps, vnum,
- includes='',
- cflags='',
- private_library=True):
+def HEIMDAL_LIBRARY(libname, source, deps, vnum, includes='', cflags=''):
'''define a Heimdal library'''
obj_target = libname + '.objlist'
ldflags = []
- if not private_library:
- # Sanitize the library name
- bundled_name = libname.lower().replace('_', '-')
- while bundled_name.startswith("lib"):
- bundled_name = bundled_name[3:]
- version = "%s_%s" % (Utils.g_module.APPNAME, Utils.g_module.VERSION.split(".")[0])
- else:
+ # FIXME: When building upstream heimdal, we should not be adding this
+ # suffix.
+ bundled_build = True
+ if bundled_build:
bundled_name = libname + '-samba4'
- vnum = Utils.g_module.VERSION[0]
- version = "%s_%s" % (Utils.g_module.APPNAME, Utils.g_module.VERSION)
+ else:
+ bundled_name = libname
+ version = "%s_%s" % (Utils.g_module.APPNAME, Utils.g_module.VERSION)
if bld.env.HAVE_LD_VERSION_SCRIPT:
vscript = "%s.vscript" % libname
vnum = vnum,
install_path = None,
name = libname,
- ldflags = ldflags,
- vars = [version],
- private_library = private_library
+ ldflags = ldflags,
+ vars = [version],
+ private_library = bundled_build,
)