svn commit: samba r20802 - in
branches/SAMBA_4_0/source/build/smb_build: .
metze at samba.org
metze at samba.org
Mon Jan 15 10:49:03 GMT 2007
Author: metze
Date: 2007-01-15 10:49:02 +0000 (Mon, 15 Jan 2007)
New Revision: 20802
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20802
Log:
- don't add the same Makefile vars twice...
- this fixes a lot of warnings on Tru64
maybe this also fixes the build on Tru64 and HPUX...
metze
Modified:
branches/SAMBA_4_0/source/build/smb_build/makefile.pm
Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm
===================================================================
--- branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2007-01-15 10:47:22 UTC (rev 20801)
+++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2007-01-15 10:49:02 UTC (rev 20802)
@@ -215,6 +215,7 @@
my ($self,$ctx) = @_;
my $init_obj = "";
+ my $has_static_lib = 0;
if ($ctx->{TYPE} eq "LIBRARY") {
push (@{$self->{shared_libs}}, "$ctx->{SHAREDDIR}/$ctx->{LIBRARY_REALNAME}") if (defined($ctx->{SO_VERSION}));
@@ -237,9 +238,13 @@
}
}
- $self->output("$ctx->{TYPE}_$ctx->{NAME}_OUTPUT = $ctx->{OUTPUT}\n");
- $self->_prepare_list($ctx, "OBJ_LIST");
- $self->_prepare_list($ctx, "FULL_OBJ_LIST");
+ $has_static_lib = 1 if grep(/STATIC_LIBRARY/, @{$ctx->{OUTPUT_TYPE}});
+
+ if (not $has_static_lib) {
+ $self->output("$ctx->{TYPE}_$ctx->{NAME}_OUTPUT = $ctx->{OUTPUT}\n");
+ $self->_prepare_list($ctx, "OBJ_LIST");
+ $self->_prepare_list($ctx, "FULL_OBJ_LIST");
+ }
$self->_prepare_list($ctx, "DEPEND_LIST");
$self->_prepare_list($ctx, "LINK_FLAGS");
More information about the samba-cvs
mailing list