summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/build/smb_build/output.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/build/smb_build/output.pm b/source4/build/smb_build/output.pm
index 6213497a58..5bdb4a417a 100644
--- a/source4/build/smb_build/output.pm
+++ b/source4/build/smb_build/output.pm
@@ -137,11 +137,7 @@ sub create_output($$)
next if not defined($elem->{CFLAGS});
next if $elem->{CFLAGS} eq "";
- my $found = 0;
- foreach my $line (@{$part->{PUBLIC_CFLAGS}}) {
- $found = 1 if ($line eq $elem->{CFLAGS});
- }
- next if ($found == 1);
+ next if (grep /^$elem->{CFLAGS}$/, @{$part->{PUBLIC_CFLAGS}});
push(@{$part->{PUBLIC_CFLAGS}}, $elem->{CFLAGS});
}