r12254: Add some (hopefully correct) descriptions for libraries that are installed.
[bbaumbach/samba-autobuild/.git] / source4 / build / smb_build / makefile.pm
index 986d1aa2135882f4bac77168e8f39fa9b795462d..6982e28977193b1be3bea11c8c034fc44fe73179 100644 (file)
@@ -238,7 +238,7 @@ sub SharedLibrary($$)
 {
        my ($self,$ctx) = @_;
 
-       push (@{$self->{shared_libs}}, "bin/$ctx->{LIBRARY_NAME}");
+       push (@{$self->{shared_libs}}, "bin/$ctx->{LIBRARY_REALNAME}");
 
        $self->_prepare_list($ctx, "OBJ_LIST");
        $self->_prepare_list($ctx, "CFLAGS");
@@ -408,6 +408,11 @@ sub PkgConfig($$)
        $link_name =~ s/^LIB//g;
        $link_name = lc($link_name);
 
+       if (not defined($ctx->{DESCRIPTION})) {
+               warn("$ctx->{NAME} has not DESCRIPTION set, not generating .pc file");
+               return;
+       }
+
        my $path = "$ctx->{BASEDIR}/$link_name.pc";
 
        push (@{$self->{pc_files}}, $path);