1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

r15318: Don't create empty static libraries as some hosts have trouble with them.

(This used to be commit 1505d7c600)
This commit is contained in:
Jelmer Vernooij 2006-04-29 11:32:54 +00:00 committed by Gerald (Jerry) Carter
parent 26259ce98b
commit a3b8cfbc8f
5 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,3 @@
- replace StrnCpy() with strlcpy()
- Add --export-dynamic for each subsystem that has modules
- let the build system implement some make functions($(patsubst),$(wildcard),...) and use our own implementations where `make' does not support them
- include extra_flags.txt using Makefile construction if

View File

@ -323,6 +323,8 @@ sub StaticLibrary($$)
{
my ($self,$ctx) = @_;
return unless (defined($ctx->{OBJ_FILES}));
push (@{$self->{static_libs}}, $ctx->{TARGET});
$self->output("$ctx->{TYPE}_$ctx->{NAME}_OUTPUT = $ctx->{OUTPUT}\n");

View File

@ -86,7 +86,11 @@ sub generate_static_library($)
push(@{$lib->{LINK_FLAGS}}, "\$($lib->{TYPE}_$lib->{NAME}\_OBJ_LIST)");
$lib->{TARGET} = "bin/$lib->{LIBRARY_NAME}";
$lib->{OUTPUT} = "-l".lc($link_name);
if (defined($lib->{OBJ_FILES})) {
$lib->{OUTPUT} = $lib->{TARGET};
} else {
$lib->{OUTPUT} = "";
}
}
sub generate_binary($)

View File

@ -6,5 +6,6 @@ SO_VERSION = 0
DESCRIPTION = Wrapper library for testing TCP/IP connections using Unix Sockets
PUBLIC_HEADERS = socket_wrapper.h
OBJ_FILES = socket_wrapper.o
PRIVATE_DEPENDENCIES = EXT_SOCKET
# End SUBSYSTEM SOCKET_WRAPPER
##############################

View File

@ -775,8 +775,9 @@ _PUBLIC_ int strwicmp(const char *psz1, const char *psz2)
**/
_PUBLIC_ void string_replace(char *s, char oldc, char newc)
{
for (;s && *s; s++) {
while (*s) {
if (*s == oldc) *s = newc;
s++;
}
}