build: python libs need to be built shared, regardless of --disable-shared
authorAndrew Tridgell <tridge@samba.org>
Tue, 30 Mar 2010 11:28:30 +0000 (22:28 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:19 +0000 (20:27 +1000)
we don't have a way to load them otherwise

buildtools/wafsamba/wafsamba.py

index 3f48de4ca68120940d795166b3d5308bfab8c32f..51d85731eb84a1d94e2a064192b601c59359a1bc 100644 (file)
@@ -100,7 +100,7 @@ def SAMBA_LIBRARY(bld, libname, source,
         SET_TARGET_TYPE(bld, libname, 'EMPTY')
         return
 
-    if BUILTIN_LIBRARY(bld, libname):
+    if target_type != 'PYTHON' and BUILTIN_LIBRARY(bld, libname):
         obj_target = libname
     else:
         obj_target = libname + '.objlist'
@@ -122,7 +122,7 @@ def SAMBA_LIBRARY(bld, libname, source,
                         needs_python   = needs_python,
                         local_include  = local_include)
 
-    if BUILTIN_LIBRARY(bld, libname):
+    if libname == obj_target:
         return
 
     if not SET_TARGET_TYPE(bld, libname, target_type):