summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/build/smb_build/output.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/source4/build/smb_build/output.pm b/source4/build/smb_build/output.pm
index d617598a7a..6213497a58 100644
--- a/source4/build/smb_build/output.pm
+++ b/source4/build/smb_build/output.pm
@@ -132,13 +132,8 @@ sub create_output($$)
my $elem = $depend->{$_};
next if $elem == $part;
- if (defined(@{$elem->{CPPFLAGS}})) {
- my $count = 0;
- foreach (@{$elem->{CPPFLAGS}}) {
- $count++;
- }
- push(@{$part->{PUBLIC_CFLAGS}}, @{$elem->{CPPFLAGS}}) if ($count > 0);
- }
+ push(@{$part->{PUBLIC_CFLAGS}}, @{$elem->{CPPFLAGS}}) if (defined(@{$elem->{CPPFLAGS}}))
+ and ($#{$elem->{CPPFLAGS}} > 0);
next if not defined($elem->{CFLAGS});
next if $elem->{CFLAGS} eq "";