summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/smb_build/makefile.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index 986d1aa213..6982e28977 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -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);