diff options
Diffstat (limited to 'source4/script/cflags.pl')
-rwxr-xr-x | source4/script/cflags.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/script/cflags.pl b/source4/script/cflags.pl index 7ca8f12404..f98ed9f611 100755 --- a/source4/script/cflags.pl +++ b/source4/script/cflags.pl @@ -7,13 +7,15 @@ use strict; my $target = shift; +my $target2 = "./$target"; sub check_flags($) { my ($name)=@_; open (IN, "extra_cflags.txt"); while (<IN> =~ /^([^:]+): (.*)$/) { - next unless (grep(/^$target$/, (split / /, $1))); + next unless (grep(/^$target$/, (split / /, $1)) || + grep(/^$target2$/, (split / /, $1))); $_ = $2; s/^CFLAGS\+=//; print "$_ "; |