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

r3744: Support building subsystems as a shared library. Modules don't work yet,

so while this does compile, it does not work yet.
(This used to be commit 3d885562c9)
This commit is contained in:
Jelmer Vernooij 2004-11-15 00:32:37 +00:00 committed by Gerald (Jerry) Carter
parent c66dbe0c3e
commit 34ddb33b4b
10 changed files with 20 additions and 11 deletions

View File

@ -17,6 +17,7 @@ REQUIRED_SUBSYSTEMS = \
[MODULE::auth_builtin]
INIT_FUNCTION = auth_builtin_init
SUBSYSTEM = AUTH
REQUIRED_SUBSYSTEMS = LIBCLI_UTILS
INIT_OBJ_FILES = \
auth/auth_builtin.o
# End MODULE auth_builtin

View File

@ -356,7 +356,7 @@ LIBRARY_$ctx->{NAME}_SHARED_LINK_LIST =$tmpshlink
LIBRARY_$ctx->{NAME}_SHARED_LINK_FLAGS =$tmpshflag
#
# Shared $ctx->{LIBRARY_REALNAME}
# Shared $ctx->{LIBRARY_NAME}
$ctx->{OUTPUT}: \$(LIBRARY_$ctx->{NAME}_DEPEND_LIST) bin/.dummy
\@echo Linking \$\@
\@\$(SHLD) \$(SHLD_FLAGS) -o \$\@ \\

View File

@ -101,7 +101,8 @@ sub create_output($)
push(@{$part->{SUBSYSTEM_INIT_FUNCTIONS}}, @{$elem->{INIT_FUNCTION}}) if
$part->{OUTPUT_TYPE} eq "BINARY" and
defined($elem->{INIT_FUNCTION}) and
$elem->{INIT_FUNCTION} ne "";
$elem->{INIT_FUNCTION} ne "" and
$part->{OUTPUT_TYPE} ne "SHARED_LIBRARY";
}
}

View File

@ -64,7 +64,8 @@ sub _prepare_smb_build_h($)
next if $key->{OUTPUT_TYPE} ne "SHARED_LIBRARY";
my $name = $key->{NAME};
my $func = $key->{INIT_FUNCTION};
next if not defined($key->{INIT_FUNCTION});
my $func = join(' ', @{$key->{INIT_FUNCTION}});
next if $func eq "";
my $DEFINE = ();

View File

@ -10,6 +10,7 @@ REQUIRED_SUBSYSTEMS = \
CONFIG \
LIBCMDLINE \
LIBBASIC \
LIBSMB
LIBSMB \
LIBRPC
# End BINARY smbclient
#################################

View File

@ -4,7 +4,7 @@
INIT_OBJ_FILES = \
lib/dcom/common/main.o \
lib/dcom/common/tables.o
REQUIRED_SUBSYSTEMS = LIBRPC
REQUIRED_SUBSYSTEMS = LIBNDR_RAW LIBNDR_GEN LIBRPC_RAW
#
# End SUBSYSTEM LIBDCOM
################################################

View File

@ -1,5 +1,5 @@
[SUBSYSTEM::LIBSMB]
REQUIRED_SUBSYSTEMS = LIBCLI LIBRPC SOCKET
REQUIRED_SUBSYSTEMS = LIBCLI SOCKET
ADD_OBJ_FILES = libcli/clireadwrite.o \
libcli/cliconnect.o \
libcli/clifile.o \

View File

@ -7,5 +7,6 @@ ADD_OBJ_FILES = \
libnet/libnet_passwd.o \
libnet/libnet_time.o \
libnet/libnet_rpc.o
REQUIRED_SUBSYSTEMS = LIBRPC
# End SUBSYSTEM LIBNET
#################################

View File

@ -20,7 +20,7 @@ ADD_OBJ_FILES = \
torture/basic/delaywrite.o \
torture/basic/attr.o
REQUIRED_SUBSYSTEMS = \
LIBSMB
LIBSMB LIBRPC
# End SUBSYSTEM TORTURE_BASIC
#################################
@ -185,7 +185,8 @@ REQUIRED_SUBSYSTEMS = \
LIBSMB \
CONFIG \
LIBBASIC \
LIBCMDLINE
LIBCMDLINE \
LIBRPC
# End BINARY gentest
#################################
@ -198,7 +199,8 @@ REQUIRED_SUBSYSTEMS = \
LIBSMB \
CONFIG \
LIBBASIC \
LIBCMDLINE
LIBCMDLINE \
LIBRPC
# End BINARY masktest
#################################
@ -212,6 +214,7 @@ REQUIRED_SUBSYSTEMS = \
LIBSMB \
CONFIG \
LIBBASIC \
LIBCMDLINE
LIBCMDLINE \
LIBRPC
# End BINARY locktest
#################################

View File

@ -9,7 +9,8 @@ REQUIRED_SUBSYSTEMS = \
CONFIG \
LIBCMDLINE \
LIBBASIC \
LIBSMB
LIBSMB \
LIBRPC
# End BINARY ndrdump
#################################