Roberto Leinardi
11/25/2024, 9:27 PMbuild/bin/linuxX64/debugTest/test.kexe: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
In particular I get it on fedora and arch, but not on ubuntu and opensuse. Is there any known workaround?
I'm using Kotlin 2.0.21Roberto Leinardi
11/25/2024, 10:09 PMlibxcrypt-compat
.Roberto Leinardi
11/25/2024, 11:09 PMSkaldebane
11/30/2024, 2:16 PMlibxcrypt-compat
package.Roberto Leinardi
12/01/2024, 1:55 PMSkaldebane
12/01/2024, 1:59 PMRoberto Leinardi
12/01/2024, 2:00 PMsuresh
12/17/2024, 6:59 PMbinaries {
executable(setOf(RELEASE)) {
entryPoint = "main"
// Fix for libcrypt.so.1 not-found error on distroless
if (target.targetName.startsWith("linux")) {
linkerOpts("--as-needed")
freeCompilerArgs += "-Xoverride-konan-properties=linkerGccFlags.linux=-lgcc -lgcc_eh -lc"
}