If the same lib or directive are added twice, duplicates are emit to the object file.
The linker text list should be de-duplicated before writing out.
Comment #1 by dlang-bot — 2021-03-25T11:19:46Z
@thewilsonator created dlang/dmd pull request #12308 "Fix issue 19329 pragms(lib) and pragma(linkerDirective) can emit dupl…" fixing this issue:
- Fix issue 19329 pragms(lib) and pragma(linkerDirective) can emit duplicate entries to the object
https://github.com/dlang/dmd/pull/12308
Comment #2 by dlang-bot — 2024-09-18T09:39:26Z
@thewilsonator updated dlang/dmd pull request #16849 "Do not emit duplicate string for `pragma([lib|linkerDirective])`" fixing this issue:
- Fix bugzilla Issue 19329: Do not emit duplicate string for `pragma([lib|linkerDirective])`
https://github.com/dlang/dmd/pull/16849
Comment #3 by robert.schadek — 2024-12-13T19:01:03Z