Skip to content

ICU-21560 mingw: Remove version numbers from link flags#1668

Merged
jefgen merged 1 commit intounicode-org:mainfrom
longnguyen2004:mingw-link-flags
Mar 31, 2021
Merged

ICU-21560 mingw: Remove version numbers from link flags#1668
jefgen merged 1 commit intounicode-org:mainfrom
longnguyen2004:mingw-link-flags

Conversation

@longnguyen2004
Copy link
Copy Markdown
Contributor

@longnguyen2004 longnguyen2004 commented Mar 25, 2021

Checklist
  • Required: Issue filed: https://unicode-org.atlassian.net/browse/ICU-21560
  • Required: The PR title must be prefixed with a JIRA Issue number.
  • Required: The PR description must include the link to the Jira Issue, for example by completing the URL in the first checklist item
  • Required: Each commit message must be prefixed with a JIRA Issue number.
  • Issue accepted (done by Technical Committee after discussion)
  • Tests included, if applicable
  • API docs and/or User Guide docs changed or added, if applicable

On mingw, the import libraries are unversioned (libicudt.dll.a, libicuuc.dll.a, etc.), while the link flags are versioned. Using gcc + bfd/gold, this isn't a problem, since the DLL files are versioned, and the linker can link to the DLL directly, albeit not recommended. However, clang + lld prohibits linking to a DLL, so we have to use the import libraries, which means removing the version number from the link flags.

@longnguyen2004 longnguyen2004 changed the title ICU-21560 - mingw: Remove version numbers from link flags ICU-21560 mingw: Remove version numbers from link flags Mar 29, 2021
@jefgen jefgen self-assigned this Mar 31, 2021
@jefgen jefgen self-requested a review March 31, 2021 17:50
@jefgen
Copy link
Copy Markdown
Member

jefgen commented Mar 31, 2021

Thank you for filing an issue and creating a PR for this!

@jefgen jefgen merged commit fcd8c34 into unicode-org:main Mar 31, 2021
@longnguyen2004 longnguyen2004 deleted the mingw-link-flags branch April 4, 2021 15:54
lazka added a commit to lazka/MINGW-packages that referenced this pull request Aug 28, 2021
The dropped patches have been fixed upstream:
unicode-org/icu#1505
unicode-org/icu#1668
lazka added a commit to lazka/MINGW-packages that referenced this pull request Aug 28, 2021
The dropped patches have been fixed upstream:
unicode-org/icu#1505
unicode-org/icu#1668
kou pushed a commit to kou/MINGW-packages that referenced this pull request Oct 18, 2021
The dropped patches have been fixed upstream:
unicode-org/icu#1505
unicode-org/icu#1668
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants