1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

wafsamba: Use BUILTIN_LIBRARY() rather than relying on side-effects.

This commit is contained in:
Jelmer Vernooij 2010-06-18 09:45:15 +02:00
parent da0fb0affb
commit e0fe941218

View File

@ -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):