Why do Kotlin/Native produced binaries depend on l...
# kotlin-native
j
Why do Kotlin/Native produced binaries depend on libstdc++ ?
o
What platform are you talking about?
j
Tested on mingw... I had assumed the same is the case for other platforms?
To clarify, it links it statically. Unless you change some things around in konan.properties, then it becomes a dynamic dependency. Stripping it out almost halves the file size. Admittedly I know very little about compilers, I'm just curious why it is needed.
o
Mingw runtime is linked into the binary (as it is not available on all target machines). Typical binary size on most other platforms is smaller. Parts of C++ runtime are needed for exception handling, as K/N currently uses C++ personality function.