lib: Make time-basic a library
authorVolker Lendecke <vl@samba.org>
Tue, 23 Jun 2015 08:40:33 +0000 (10:40 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 23 Jun 2015 20:12:08 +0000 (22:12 +0200)
The next commit will make genrand depend on time-basic. Without this, we would
link in time-basic twice, from samba-debug and from genrand.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/wscript_build

index b95108a1082e843bf21833e9914667159caf1371..a1287b7e0b7b720bbc81b97ffe67d4c58d56acca 100755 (executable)
@@ -3,10 +3,11 @@
 # Please add any new SAMBA_SUBSYSTEM/SAMBA_LIBRARY to the bottom of the file
 # unless they are also required to build standalone ctdb.
 
-bld.SAMBA_SUBSYSTEM('time-basic',
-                    source='time_basic.c',
-                    deps='replace',
-                    local_include=False)
+bld.SAMBA_LIBRARY('time-basic',
+                  source='time_basic.c',
+                  deps='replace',
+                  private_library=True,
+                  local_include=False)
 
 bld.SAMBA_SUBSYSTEM('tini',
                     source='tini.c',