1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r19575: Build static libs in bin/static rather than bin/

(This used to be commit c9b06ce563)
This commit is contained in:
Jelmer Vernooij 2006-11-06 17:28:27 +00:00 committed by Gerald (Jerry) Carter
parent 09a36ffab1
commit 8164c24149
3 changed files with 5 additions and 5 deletions

View File

@ -114,7 +114,7 @@ sub _prepare_compiler_linker($)
$libdir = "\$(builddir)/bin/shared";
$devld_install = " -Wl,-rpath-link,\$(builddir)/bin/shared";
} else {
$libdir = "\$(builddir)/bin";
$libdir = "\$(builddir)/bin/static";
}
if (!(abs_path($self->{config}->{srcdir}) eq abs_path($self->{config}->{builddir}))) {
@ -248,14 +248,14 @@ sub SharedLibrary($$)
$proto_fn =~ s/\(\*\)/$ctx->{INIT_FUNCTION}/;
$self->output(<< "__EOD__"
$ctx->{SHAREDDIR}/$ctx->{NAME}_init_module.c:
bin/$ctx->{NAME}_init_module.c:
\@echo Creating \$\@
\@echo \"#include \\\"includes.h\\\"\" > \$\@
\@echo \"$proto_fn;\" >> \$\@
\@echo -e \"_PUBLIC_ $init_fn \\n{\\n\\treturn $ctx->{INIT_FUNCTION}();\\n}\\n\" >> \$\@
__EOD__
);
$init_obj = "$ctx->{SHAREDDIR}/$ctx->{NAME}_init_module.o";
$init_obj = "bin/$ctx->{NAME}_init_module.o";
}
my $soarg = "";

View File

@ -89,7 +89,7 @@ sub generate_static_library($)
push(@{$lib->{LINK_FLAGS}}, "\$($lib->{TYPE}_$lib->{NAME}\_OBJ_LIST)");
if (defined($lib->{OBJ_FILES})) {
$lib->{TARGET} = "bin/$lib->{LIBRARY_NAME}";
$lib->{TARGET} = "bin/static/$lib->{LIBRARY_NAME}";
} else {
$lib->{TARGET} = "";
}

View File

@ -253,7 +253,7 @@ clean:: clean_pch
@-rm -f $(BIN_PROGS) $(SBIN_PROGS) $(BINARIES) $(TORTURE_PROGS)
@echo Removing libraries
@-rm -f $(STATIC_LIBRARIES) $(SHARED_LIBRARIES)
@-rm -f bin/*.a bin/shared/*.$(SHLIBEXT)
@-rm -f bin/static/*.a bin/shared/*.$(SHLIBEXT)
@echo Removing modules
@-rm -f bin/modules/*/*.$(SHLIBEXT)
@-rm -f bin/*_init_module.c