Skip to content

Commit f5f360c

Browse files
ktbarrettlygstate
authored andcommitted
Fix msys library name in import libraries
Cygwin's speclib doesn't handle dashes or dots. However, we are about to rename the output file name from `cygwin1.dll` to `msys-2.0.dll`. Let's preemptively fix up all the import libraries that would link against `msys_2_0.dll` to correctly link against `msys-2.0.dll` instead.
1 parent a56f185 commit f5f360c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

winsup/cygwin/scripts/speclib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ while (<$nm_fd>) {
3838
study;
3939
if (/ I _?(.*)_dll_iname/o) {
4040
$dllname = $1;
41+
$dllname =~ s/_2_0/-2.0/;
4142
} else {
4243
my ($file, $member, $symbol) = m%^([^:]*):([^:]*(?=:))?.* T (.*)%o;
4344
next if !defined($symbol) || $symbol =~ $exclude_regex;

0 commit comments

Comments
 (0)