Skip to content

Commit

Permalink
Merge pull request #28 from bluhm/makefile-arg
Browse files Browse the repository at this point in the history
Use $_ to iterate over @argv in Makefile.PL
  • Loading branch information
toddr authored Apr 6, 2021
2 parents 97e4713 + 066f953 commit 36bc5f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Config qw(%Config);
my %cfg;
@cfg{qw(cc ccflags ldflags)} = @Config{qw(cc ccflags ldflags)};
for my $arg (@ARGV) {
if ( /^(CC|CCFLAGS|LDFLAGS)=(.*)/i ) {
if ( $arg =~ /^(CC|CCFLAGS|LDFLAGS)=(.*)/i ) {
$cfg{lc($1)} = $2;
}
}
Expand Down

0 comments on commit 36bc5f3

Please sign in to comment.