summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script')
-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 = ();