Hello, I want to know if it is possible to build t...
# compiler
a
Hello, I want to know if it is possible to build the Kotlin native shared library as a statically linked ? I usually used the
-static
flag for clang, but as I understand it, due to the need to use
-cc1
, I can't do it. Any ideas please.
Copy code
androidNativeArm64 {
        compilations.all {
            kotlinOptions {
                freeCompilerArgs += "-Xoverride-konan-properties=clangFlags.android_arm64=-cc1 -emit-obj -static"
            }
        }
        binaries.sharedLib()
    }