summaryrefslogtreecommitdiff
path: root/source4/build/smb_build
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/smb_build')
-rw-r--r--source4/build/smb_build/makefile.pm6
-rw-r--r--source4/build/smb_build/output.pm2
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index 22bf95e5b2..78b16599f4 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -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 = "";
diff --git a/source4/build/smb_build/output.pm b/source4/build/smb_build/output.pm
index e7609e6549..34ed7ae03e 100644
--- a/source4/build/smb_build/output.pm
+++ b/source4/build/smb_build/output.pm
@@ -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} = "";
}