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