summaryrefslogtreecommitdiff
path: root/source4/build/smb_build
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-07 10:32:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:51 -0500
commitb427944198e9fb67ceb8fbcfee2dbf80c5f8216d (patch)
tree0d72f4db86de577e5f4ca15192f78b472929b361 /source4/build/smb_build
parente0f8a4901415251263d9efc46979ac6bd67864f1 (diff)
downloadsamba-b427944198e9fb67ceb8fbcfee2dbf80c5f8216d.tar.gz
samba-b427944198e9fb67ceb8fbcfee2dbf80c5f8216d.tar.bz2
samba-b427944198e9fb67ceb8fbcfee2dbf80c5f8216d.zip
r18215: use a shorter version
metze (This used to be commit 239a2607ab1a725dcbbfc03103006d2a3bf6b41e)
Diffstat (limited to 'source4/build/smb_build')
-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 "";