[Issue 17707] unimported modules in libraries do not have their module constructors run

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 22 19:57:01 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=17707

kinke <kinke at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net

--- Comment #3 from kinke <kinke at gmx.net> ---
Yep, this is expected default behavior. But linkers support force-pulling all
object files from static libs:

* ld: --whole-archive libfoo.a --no-whole-archive
* Apple ld64: -force_load libfoo.a
* MS link.exe: /WHOLEARCHIVE:foo.lib

--


More information about the Digitalmars-d-bugs mailing list