Skip to content

Commit

Permalink
Set $Config{libc} to default mingw runtime (mingw builds only).
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphus committed Nov 20, 2023
1 parent 65fe10b commit e48fe04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions win32/config_sh.PL
Expand Up @@ -155,6 +155,9 @@ if (exists $opt{cc}) {
}
elsif ($opt{cc} =~ /\bgcc\b/) {
chomp($opt{gccversion} = `$opt{cc} -dumpversion`);
chomp($opt{libc} = `$opt{cc} -o rt.exe configure/rt.c 1>nul 2>&1 && rt`);
if(-e 'rt.exe') { unlink 'rt.exe' } # rt.exe no longer needed
else { die "Failed to identify default runtime" }
}
}

Expand Down

0 comments on commit e48fe04

Please sign in to comment.