r19575: Build static libs in bin/static rather than bin/
authorJelmer Vernooij <jelmer@samba.org>
Mon, 6 Nov 2006 17:28:27 +0000 (17:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:24:55 +0000 (14:24 -0500)
(This used to be commit c9b06ce5636c37ddb077513796a288d88f62c358)

source4/build/smb_build/makefile.pm
source4/build/smb_build/output.pm
source4/main.mk

index 22bf95e5b27a0d9279020a709ea96dc8ed3d4b83..78b16599f42e038811c5bbfd6222a9590580606a 100644 (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 = "";
index e7609e65496fc3ece7dcbc7aed124732b21ba525..34ed7ae03ec6a7fb38e106d058c3e20d5c52b051 100644 (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} = "";
        }
index c3d232e86c2331e2569f4f3048adb775cd857350..4779044ad62f7811db30a3ffae9b0a84df8ec20d 100644 (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