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:
parent
da0fb0affb
commit
e0fe941218
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user