r26664: buildsystem: Hopefully fix the shared library build on AIX.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 4 Jan 2008 21:41:29 +0000 (15:41 -0600)
committerStefan Metzmacher <metze@samba.org>
Fri, 4 Jan 2008 15:48:04 +0000 (09:48 -0600)
source/build/smb_build/output.pm

index d9c05530b379f590a67b58b64b83fc6ea32d5c86..fbf14f7e91803ef559df0401e168d7a2f7fae55c 100644 (file)
@@ -7,6 +7,7 @@
 
 package output;
 use strict;
+use smb_build::config;
 
 sub add_dir_str($$)
 {
@@ -79,7 +80,7 @@ sub generate_shared_library($)
 
        $lib->{LIBRARY_DEBUGNAME} = $lib->{LIBRARY_REALNAME};
 
-       if (defined($lib->{VERSION})) {
+       if (defined($lib->{VERSION}) and $config::config{SONAMEFLAG} ne "#") {
                $lib->{LIBRARY_SONAME} = "$lib->{LIBRARY_REALNAME}.$lib->{SO_VERSION}";
                $lib->{LIBRARY_REALNAME} = "$lib->{LIBRARY_REALNAME}.$lib->{VERSION}";
        }