mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Rely on GNU make to build static libraries.
Conflicts: source/build/smb_build/makefile.pm
This commit is contained in:
parent
16c60cd347
commit
f34a17a92b
@ -281,16 +281,7 @@ sub StaticLibrary($$)
|
||||
$self->output("$ctx->{NAME}_OUTPUT = $ctx->{OUTPUT}\n");
|
||||
$self->_prepare_list($ctx, "FULL_OBJ_LIST");
|
||||
|
||||
$self->output(<< "__EOD__"
|
||||
#
|
||||
$ctx->{RESULT_STATIC_LIBRARY}: \$($ctx->{NAME}_FULL_OBJ_LIST)
|
||||
\@echo Linking \$@
|
||||
\@rm -f \$@
|
||||
\@mkdir -p $ctx->{STATICDIR}
|
||||
\@\$(STLD) \$(STLD_FLAGS) \$@ \$($ctx->{NAME}_FULL_OBJ_LIST)
|
||||
|
||||
__EOD__
|
||||
);
|
||||
$self->output("$ctx->{RESULT_STATIC_LIBRARY}: \$($ctx->{NAME}_FULL_OBJ_LIST)\n");
|
||||
}
|
||||
|
||||
sub Header($$)
|
||||
|
@ -100,6 +100,13 @@ check:: test
|
||||
unused_macros:
|
||||
$(srcdir)/script/find_unused_macros.pl `find . -name "*.[ch]"` | sort
|
||||
|
||||
# Create a static library
|
||||
%.a:
|
||||
@echo Linking $@
|
||||
@rm -f $@
|
||||
@mkdir -p $(@D)
|
||||
@$(STLD) $(STLD_FLAGS) $@ $^
|
||||
|
||||
###############################################################################
|
||||
# File types
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user