diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-04-08 14:49:59 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2006-04-08 14:49:59 +0000 |
commit | 66627e798249d73b208a7c271ce7e44bb3a59305 (patch) | |
tree | ec03ec09790c3a8c9a24f6498f5f8171e6399cc2 /source/build | |
parent | a6266ea59410d99d3c75cfa80d20bc69d1a78fc5 (diff) | |
download | samba-66627e798249d73b208a7c271ce7e44bb3a59305.tar.gz samba-66627e798249d73b208a7c271ce7e44bb3a59305.tar.xz samba-66627e798249d73b208a7c271ce7e44bb3a59305.zip |
r14997: Fix build of static libraries. Libraries build fine now, but linking doesn't
work yet.
Diffstat (limited to 'source/build')
-rw-r--r-- | source/build/smb_build/makefile.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/build/smb_build/makefile.pm b/source/build/smb_build/makefile.pm index e511cbaca2e..197cbc9551f 100644 --- a/source/build/smb_build/makefile.pm +++ b/source/build/smb_build/makefile.pm @@ -133,7 +133,7 @@ LD=$self->{config}->{LD} LDFLAGS=$self->{config}->{LDFLAGS} -L\$(builddir)/bin STLD=$self->{config}->{AR} -STLD_FLAGS=-rc -L\$(builddir)/bin +STLD_FLAGS=-rc SHLD=$self->{config}->{CC} SHLD_FLAGS=$self->{config}->{LDSHFLAGS} -L\$(builddir)/bin @@ -342,7 +342,7 @@ sub StaticLibrary($$) { my ($self,$ctx) = @_; - push (@{$self->{static_libs}}, $ctx->{OUTPUT}); + push (@{$self->{static_libs}}, $ctx->{TARGET}); $self->_prepare_list($ctx, "OBJ_LIST"); $self->_prepare_list($ctx, "CFLAGS"); @@ -355,10 +355,10 @@ sub StaticLibrary($$) $self->output(<< "__EOD__" # -$ctx->{TARGET}: \$($ctx->{TYPE}_$ctx->{NAME}_DEPEND_LIST) \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST) +$ctx->{TARGET}: \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST) \@echo Linking \$@ \@\$(STLD) \$(STLD_FLAGS) \$@ \\ - \$($ctx->{TYPE}_$ctx->{NAME}_LINK_LIST) + \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST) __EOD__ ); |