From e0fe9412186ab0962c672241ac386cafb25f95ef Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 18 Jun 2010 09:45:15 +0200 Subject: wafsamba: Use BUILTIN_LIBRARY() rather than relying on side-effects. --- buildtools/wafsamba/wafsamba.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buildtools/wafsamba') diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index eb2d56e2db..e45544589c 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -132,7 +132,7 @@ def SAMBA_LIBRARY(bld, libname, source, SET_TARGET_TYPE(bld, libname, 'EMPTY') return - if target_type != 'PYTHON' and BUILTIN_LIBRARY(bld, libname): + if BUILTIN_LIBRARY(bld, libname): obj_target = libname else: obj_target = libname + '.objlist' @@ -155,7 +155,7 @@ def SAMBA_LIBRARY(bld, libname, source, hide_symbols = hide_symbols, local_include = local_include) - if libname == obj_target: + if BUILTIN_LIBRARY(bld, libname): return if not SET_TARGET_TYPE(bld, libname, target_type): -- cgit