Does ld link dynamically to the runtime libraries by default? #11601
Unanswered
TheShermanTanker
asked this question in
Q&A
Replies: 2 comments 6 replies
-
Yes.
|
Beta Was this translation helpful? Give feedback.
6 replies
-
aye i usually add -fno-function-sections -fno-data-sections when building gcc as these seem to be elf related. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does the ucrt64 toolchain link dynamically to ucrtbase.dll and libstdc++.dll by default? Asking because the final binaries generated by the compiler are at the very least a whopping 133KB in size even for tiny programs, which leads me to believe that the libraries might be getting statically linked quietly (or if other Windows libraries such as user32 are getting pulled into the binary without me knowing), but I can't be sure since I don't have a way to check whether they are
Beta Was this translation helpful? Give feedback.
All reactions