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.
@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
@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