summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/env.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-11-24 16:45:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:31 -0500
commitd25f2ba3dc87dc9eb343e9a6caced475ef956bd5 (patch)
tree15751b9c93c1da22e477e0948961893c855e5616 /source4/build/smb_build/env.pm
parentf98b34d0f20e2c105f0a31c12a549d0ec29b48bb (diff)
downloadsamba-d25f2ba3dc87dc9eb343e9a6caced475ef956bd5.tar.gz
samba-d25f2ba3dc87dc9eb343e9a6caced475ef956bd5.tar.bz2
samba-d25f2ba3dc87dc9eb343e9a6caced475ef956bd5.zip
r19881: Add private library flags when linking to static libraries.
(This used to be commit 72f1ffc0ef56753deba716cf9d31d44c95e7cc33)
Diffstat (limited to 'source4/build/smb_build/env.pm')
-rw-r--r--source4/build/smb_build/env.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/build/smb_build/env.pm b/source4/build/smb_build/env.pm
index 1466a8679c..eb798f5ad0 100644
--- a/source4/build/smb_build/env.pm
+++ b/source4/build/smb_build/env.pm
@@ -53,9 +53,9 @@ sub _set_config($$)
$self->{automatic_deps} = ($self->{config}->{automatic_dependencies} eq "yes");
}
-sub PkgConfig($$$$$$$$$$$)
+sub PkgConfig($$$$$$$$$$$$)
{
- my ($self,$path,$name,$libs,$cflags,$version,$desc,$hasmodules,$pubdep,$privdep,$dirs) = @_;
+ my ($self,$path,$name,$libs,$privlibs,$cflags,$version,$desc,$hasmodules,$pubdep,$privdep,$dirs) = @_;
print __FILE__.": creating $path\n";
@@ -83,6 +83,7 @@ sub PkgConfig($$$$$$$$$$$)
print OUT "Requires.private: $privdep\n" if defined($privdep);
print OUT "Version: $version\n";
print OUT "Libs: $libs\n";
+ print OUT "Libs.private: $privlibs\n" if (defined($privlibs));
print OUT "Cflags: -I\${includedir} $cflags\n";
close(OUT);