smb_build: Make sure LIBRARY_SONAME is never uninitialized.
authorJames Peach <jpeach@samba.org>
Sun, 13 Apr 2008 21:09:09 +0000 (14:09 -0700)
committerJames Peach <jpeach@samba.org>
Sun, 13 Apr 2008 21:09:09 +0000 (14:09 -0700)
(This used to be commit 2b8cf1b2a447711d123c563dfbd9a54941155267)

source4/build/smb_build/makefile.pm

index fb3ac561fa061ab1578e4b10ea4fb9ac7a2c1114..2470fa145924337f11f154f0f02f91c65cbec270 100644 (file)
@@ -220,6 +220,10 @@ sub SharedLibrary($$)
 {
        my ($self,$ctx) = @_;
 
+       if (!defined($ctx->{LIBRARY_SONAME})) {
+               $ctx->{LIBRARY_SONAME} = "";
+       }
+
        $self->output("SHARED_LIBS += $ctx->{SHAREDDIR}/$ctx->{LIBRARY_REALNAME}\n") if (defined($ctx->{SO_VERSION}));
 
        $self->_prepare_list($ctx, "DEPEND_LIST");