r22037: Make sure STATICDIR exists before linking a static archive.
authorJames Peach <jpeach@samba.org>
Mon, 2 Apr 2007 17:29:03 +0000 (17:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:49:44 +0000 (14:49 -0500)
(This used to be commit c8ffdc15420c9b849b8d8e930f644ac6f83dcc77)

source4/build/smb_build/makefile.pm

index 3cf764bf2233e0a0905a8e93aa7765dfbb1c35c8..a7b5d4cb1ccdee38793ac73335e34c8a7aa7126c 100644 (file)
@@ -337,6 +337,7 @@ sub StaticLibrary($$)
 $ctx->{TARGET_STATIC_LIBRARY}: \$($ctx->{TYPE}_$ctx->{NAME}_FULL_OBJ_LIST)
        \@echo Linking \$@
        \@rm -f \$@
+       \@mkdir -p $ctx->{STATICDIR}
        \@\$(STLD) \$(STLD_FLAGS) \$@ \$($ctx->{TYPE}_$ctx->{NAME}_FULL_OBJ_LIST)
 
 __EOD__