diff options
Diffstat (limited to 'source4/script/cflags.pl')
-rwxr-xr-x | source4/script/cflags.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/script/cflags.pl b/source4/script/cflags.pl index 476960db5d..c848b56e7d 100755 --- a/source4/script/cflags.pl +++ b/source4/script/cflags.pl @@ -13,8 +13,10 @@ sub check_flags($) my ($name)=@_; open (IN, "extra_cflags.txt"); while (<IN> =~ /^([^:]+): (.*)$/) { - next unless ($1 eq $target); - print "$2 "; + next unless (grep(/^$target$/, (split / /, $1))); + $_ = $2; + s/^CFLAGS\+=//; + print "$_ "; } close(IN); print "\n"; |