r15313: Fix some dependencies in dso mode
authorJelmer Vernooij <jelmer@samba.org>
Sat, 29 Apr 2006 02:45:34 +0000 (02:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:05:09 +0000 (14:05 -0500)
source/auth/kerberos/config.mk
source/build/smb_build/input.pm
source/build/smb_build/makefile.pm
source/dsdb/config.mk
source/heimdal_build/config.mk
source/lib/socket/config.mk
source/libcli/config.mk
source/libcli/ldap/config.mk
source/librpc/config.mk
source/smb_server/smb/config.mk
source/smb_server/smb2/config.mk

index 9a7ace6ab587c0f8f2c7a41be6f28ba066ae0937..4d6d07c743bc6bbc7e5f90cc43ebfbb91cc1caa6 100644 (file)
@@ -9,7 +9,7 @@ OBJ_FILES = kerberos.o \
                        kerberos_pac.o \
                        gssapi_parse.o \
                        krb5_init_context.o
-PUBLIC_DEPENDENCIES = HEIMDAL_KRB5 NDR_KRB5PAC SOCKET
+PUBLIC_DEPENDENCIES = HEIMDAL_KRB5 NDR_KRB5PAC SOCKET LIBCLI_RESOLVE
 PRIVATE_DEPENDENCIES = ASN1_UTIL HEIMDAL_ROKEN_ADDRINFO auth_sam
 # End SUBSYSTEM KERBEROS
 #################################
index 8f7e5e48388ae504a82ca8328343675beb019e54..0bef89bb5ef16b70a3d2754d25b60f5304ee57a2 100644 (file)
@@ -117,6 +117,8 @@ sub import_integrated($$)
        my ($lib, $depend) = @_;
 
        foreach my $mod (values %$depend) {
+               next if(not defined($mod->{OUTPUT_TYPE}));
+               next if($mod->{OUTPUT_TYPE} ne "INTEGRATED");
                next if(not defined($mod->{SUBSYSTEM}));
                next if($mod->{SUBSYSTEM} ne $lib->{NAME});
                next if($mod->{ENABLE} ne "YES");
index bf12de628f1e1a52d79cef652e951a0b1c01012f..e6865d5e60a1b970ec655012e5772cb57a7a6e23 100644 (file)
@@ -240,6 +240,7 @@ sub SharedLibrary($$)
                }
        }
 
+       $self->output("$ctx->{TYPE}_$ctx->{NAME}_OUTPUT = $ctx->{OUTPUT}\n");
        $self->_prepare_list($ctx, "OBJ_LIST");
        $self->_prepare_list($ctx, "FULL_OBJ_LIST");
        $self->_prepare_list($ctx, "DEPEND_LIST");
@@ -324,6 +325,7 @@ sub StaticLibrary($$)
 
        push (@{$self->{static_libs}}, $ctx->{TARGET});
 
+       $self->output("$ctx->{TYPE}_$ctx->{NAME}_OUTPUT = $ctx->{OUTPUT}\n");
        $self->_prepare_list($ctx, "OBJ_LIST");
        $self->_prepare_list($ctx, "FULL_OBJ_LIST");
 
index 5d7029b77ade76113fffdc220e08119372b8dd0b..d31fe6d1dfacfb851d58bfb1779d0b657ad66ea7 100644 (file)
@@ -7,7 +7,7 @@ include samdb/ldb_modules/config.mk
 [SUBSYSTEM::SAMDB]
 PUBLIC_PROTO_HEADER = samdb/samdb_proto.h
 PUBLIC_HEADERS = samdb/samdb.h
-PUBLIC_DEPENDENCIES = ldb LIBCLI_LDAP HEIMDAL_KRB5
+PUBLIC_DEPENDENCIES = ldb LIBCLI_LDAP HEIMDAL_KRB5 
 OBJ_FILES = \
                samdb/samdb.o \
                samdb/samdb_privilege.o \
index f6215a30724b8ea7e33bf6b526e70e6e35af691a..85274370937901dea4f3dd4e636230b18ffc8c71 100644 (file)
@@ -355,7 +355,8 @@ PUBLIC_DEPENDENCIES = \
                        HEIMDAL_ROKEN_INET_ATON \
                        HEIMDAL_ROKEN_GETPROGNAME \
                        GAI \
-                       NSL
+                       NSL \
+                       LIBREPLACE
 # End SUBSYSTEM HEIMDAL_ROKEN
 #######################
 
@@ -484,7 +485,7 @@ SO_VERSION = 0
 CFLAGS = -Iheimdal_build
 OBJ_FILES = ../heimdal/lib/vers/print_version.o
 PUBLIC_DEPENDENCIES = \
-               LIBREPLACE HEIMDAL_GSSAPI HEIMDAL_KRB5 KERBEROS \
+               HEIMDAL_GSSAPI HEIMDAL_KRB5 KERBEROS \
                RESOLV
 # End SUBSYSTEM HEIMDAL
 #######################
index 4ef7f30ab4133e91a10f616691ea49a7bc62a477..3862d4239e14e9d91c5a8884ffc8d0fd70105809 100644 (file)
@@ -41,7 +41,7 @@ OBJ_FILES = \
                access.o \
                connect_multi.o \
                connect.o
-LDFLAGS = -lcli_resolve -lcli_nbt -lndr_nbt -lndr_svcctl
+LDFLAGS = $(LIBRARY_LIBCLI_RESOLVE_OUTPUT) $(LIBRARY_LIBCLI_NBT_OUTPUT) $(SUBSYSTEM_NDR_NBT_OUTPUT) $(SUBSYSTEM_NDR_SVCCTL_OUTPUT)
 PUBLIC_DEPENDENCIES = LIBTALLOC
 PRIVATE_DEPENDENCIES = SOCKET_WRAPPER LIBCLI_COMPOSITE 
 #LIBCLI_RESOLVE
index e0bb50647d40673b669a8fb436834bce4cbadcb3..6e7f8b70e313ca00dd8889a30c0b10c948f2329a 100644 (file)
@@ -53,8 +53,8 @@ OBJ_FILES = \
        nbt/nameregister.o \
        nbt/namerefresh.o \
        nbt/namerelease.o
-PUBLIC_DEPENDENCIES = LIBNDR NDR_NBT SOCKET LIBCLI_COMPOSITE LIBEVENTS \
-       NDR_SECURITY
+PUBLIC_DEPENDENCIES = LIBNDR NDR_NBT LIBCLI_COMPOSITE LIBEVENTS \
+       NDR_SECURITY SOCKET
 
 [SUBSYSTEM::LIBCLI_DGRAM]
 OBJ_FILES = \
@@ -80,7 +80,7 @@ SO_VERSION = 0
 DESCRIPTION = WINS Replication client library
 OBJ_FILES = \
        wrepl/winsrepl.o
-PUBLIC_DEPENDENCIES = NDR_WINSREPL SOCKET LIBEVENTS
+PUBLIC_DEPENDENCIES = NDR_WINSREPL SOCKET LIBCLI_RESOLVE LIBEVENTS
 
 [SUBSYSTEM::LIBCLI_RESOLVE]
 PRIVATE_PROTO_HEADER = resolve/proto.h
@@ -109,7 +109,7 @@ PUBLIC_DEPENDENCIES = LIBCLI_RAW LIBSAMBA-ERRORS LIBCLI_AUTH \
        LIBCLI_DGRAM LIBCLI_SMB2 LIBCLI_FINDDCS
 
 [SUBSYSTEM::LIBSMB]
-PUBLIC_DEPENDENCIES = LIBCLI SOCKET
+PUBLIC_DEPENDENCIES = LIBCLI SOCKET LIBCLI_RESOLVE
 PUBLIC_PROTO_HEADER = libcli_proto.h
 OBJ_FILES = clireadwrite.o \
                cliconnect.o \
@@ -123,7 +123,7 @@ OBJ_FILES = clireadwrite.o \
 PRIVATE_PROTO_HEADER = raw/raw_proto.h
 PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE
 PUBLIC_DEPENDENCIES = LIBCLI_RAW_KRB5
-LDFLAGS = -lcli_smb_composite
+LDFLAGS = $(SUBSYSTEM_LIBCLI_SMB_COMPOSITE_OUTPUT)
 OBJ_FILES = raw/rawfile.o \
                raw/smb_signing.o \
                raw/clisocket.o \
index ec5c48b48ce97e2b8d3c623ecf5168cb288915e3..167a07eddd68af231f846323c9a41a0c69ccc6cf 100644 (file)
@@ -11,7 +11,7 @@ OBJ_FILES = ldap.o \
                ldap_ildap.o \
                ldap_controls.o
 PUBLIC_DEPENDENCIES = LIBSAMBA-ERRORS LIBEVENTS LIBPACKET
-PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE SOCKET NDR_SAMR LIBTLS ASN1_UTIL
+PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE SOCKET LIBCLI_RESOLVE NDR_SAMR LIBTLS ASN1_UTIL
 #PRIVATE_DEPENDENCIES = gensec
 # End SUBSYSTEM LIBCLI_LDAP
 #################################
index 51057b5a0a1abd7fd037629c6984f183b19eed18..0719804aca5be6c047864786af488952c18f5a89 100644 (file)
@@ -605,11 +605,11 @@ OBJ_FILES = \
                rpc/dcerpc_sock.o \
                rpc/dcerpc_connect.o
 PUBLIC_DEPENDENCIES = \
-               SOCKET LIBSMB LIBCLI_SMB2 \
+               SOCKET LIBCLI_RESOLVE LIBSMB LIBCLI_SMB2 \
                LIBNDR NDR_DCERPC \
                RPC_NDR_EPMAPPER \
                NDR_SCHANNEL RPC_NDR_NETLOGON \
-               gensec LIBCLI_AUTH
+               gensec LIBCLI_AUTH LIBCLI_RAW
 # End SUBSYSTEM dcerpc
 ################################################
 
index 8420a08cc2ad3a7f5e005daee3c7aa1e46596992..b8dc023c39a526eebfcb0a4323e7e003a3c4d8b4 100644 (file)
@@ -16,6 +16,6 @@ OBJ_FILES = \
                signing.o
 PUBLIC_DEPENDENCIES = \
                ntvfs LIBPACKET
-LDFLAGS = -lsmb_server
+LDFLAGS = $(LIBRARY_SMB_SERVER_OUTPUT)
 # End SUBSYSTEM SMB_PROTOCOL
 #######################
index 62123b16bc81d5f9b09e79eeb9b826508d223aef..ad8f9829d72230b378579bf8d592978e001c0385 100644 (file)
@@ -11,6 +11,6 @@ OBJ_FILES = \
                keepalive.o
 PUBLIC_DEPENDENCIES = \
                ntvfs LIBPACKET LIBCLI_SMB2
-LDFLAGS = -lsmb_server
+LDFLAGS = $(LIBRARY_SMB_SERVER_OUTPUT)
 # End SUBSYSTEM SMB2_PROTOCOL
 #######################