Skip to content

Commit 872e7cb

Browse files
bulk88tonycoz
authored andcommitted
GH #23390 re/Makefile.PL silence uninit $args{"LINKTYPE"} warning
#23390
1 parent ea25adf commit 872e7cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/re/Makefile.PL

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ my %args;
3232
for my $arg (@ARGV) {
3333
$args{$1} = $2 if $arg =~ /^(\w+)=(.*)$/;
3434
}
35-
if ($args{LINKTYPE} eq "static") {
36-
$defines .= ' -DPERL_EXT_RE_STATIC';
37-
}
35+
36+
$defines .= ' -DPERL_EXT_RE_STATIC'
37+
if exists($args{LINKTYPE}) && $args{LINKTYPE} eq 'static';
3838

3939
my @libs;
4040
if ($^O eq 'cygwin' && $Config{usequadmath}) {

0 commit comments

Comments
 (0)