summaryrefslogtreecommitdiff
path: root/source4/script/pkg-config
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-11-23 17:50:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:27 -0500
commit0b4bd706160bf68cfd5dac7f494f3d308b25a5da (patch)
tree4dd26b88c84f2fc0b7b27466235d34940bfdf952 /source4/script/pkg-config
parent1aec9389ed5e0079ce7b69b81e5438da6ec8bde3 (diff)
downloadsamba-0b4bd706160bf68cfd5dac7f494f3d308b25a5da.tar.gz
samba-0b4bd706160bf68cfd5dac7f494f3d308b25a5da.tar.bz2
samba-0b4bd706160bf68cfd5dac7f494f3d308b25a5da.zip
r19862: Fix list concatenation
(This used to be commit a26da5182e5618a70bc4a05af6fa2a7304138330)
Diffstat (limited to 'source4/script/pkg-config')
-rwxr-xr-xsource4/script/pkg-config14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/script/pkg-config b/source4/script/pkg-config
index bb94e1514a..434a696946 100755
--- a/source4/script/pkg-config
+++ b/source4/script/pkg-config
@@ -92,27 +92,27 @@ sub Cflags($)
{
my $name = shift;
my $fields = Parse($name);
- my $cflags = $fields->{Cflags};
+ my @cflags = split(/ /, $fields->{Cflags});
foreach (split(/[, ]/, $fields->{Requires})) {
- $cflags .= " ".Cflags($_);
+ push (@cflags, Cflags($_));
}
- return split(/ /, $cflags);
+ return @cflags;
}
sub Libs($)
{
my $name = shift;
my $fields = Parse($name);
- my $libs = $fields->{Libs};
+ my @libs = split(/ /, $fields->{Libs});
foreach (split(/[, ]/, $fields->{Requires})) {
- $libs .= " ".Libs($_);
+ push (@libs, Libs($_));
}
if ($opt_static) {
foreach (split(/[ ,]/, $fields->{"Requires.private"})) {
- $libs .= " ".Libs($_);
+ push (@libs, Libs($_));
}
}
- return split(/ /, $libs);
+ return @libs;
}
my @out = ();