summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_install.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2015-01-15 14:22:22 +0100
committerAndrew Bartlett <abartlet@samba.org>2015-05-19 19:28:18 +0200
commit616dfae8ffa88bd6b8b1145bd9d75c5b873e7044 (patch)
treefce77960bf7fae579f10d1ca706af97961dd63fc /buildtools/wafsamba/samba_install.py
parent13a91e542737562e26368ca6a359cb20026bb724 (diff)
downloadsamba-616dfae8ffa88bd6b8b1145bd9d75c5b873e7044.tar.gz
buildtools: Add --extra-python configure option
This allows building Python support for two different Python versions at the same time. Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'buildtools/wafsamba/samba_install.py')
-rw-r--r--buildtools/wafsamba/samba_install.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_install.py b/buildtools/wafsamba/samba_install.py
index aa7f14331a3..af8d2adc60c 100644
--- a/buildtools/wafsamba/samba_install.py
+++ b/buildtools/wafsamba/samba_install.py
@@ -59,6 +59,10 @@ def install_library(self):
bld = self.bld
+ default_env = bld.all_envs['default']
+ if self.env['IS_EXTRA_PYTHON']:
+ bld.all_envs['default'] = bld.all_envs['extrapython']
+
install_ldflags = install_rpath(self)
build_ldflags = build_rpath(bld)
@@ -83,7 +87,7 @@ def install_library(self):
# install link. That stops us from overwriting the existing build
# target, which has different ldflags
self.done_install_library = True
- t = self.clone('default')
+ t = self.clone(self.env)
t.posted = False
t.target += '.inst'
self.env.RPATH = build_ldflags
@@ -144,6 +148,8 @@ def install_library(self):
if dev_link:
bld.symlink_as(os.path.join(install_path, dev_link), os.path.basename(install_name))
+ bld.all_envs['default'] = default_env
+
@feature('cshlib')
@after('apply_implib')