kotlin-native/samples: workaround build for linuxArm32Hfp

libSDL2.so is missing in new sysroot (since 1.5), use one from
the old sysroot as a workaround.
This commit is contained in:
Svyatoslav Scherbina
2021-03-16 11:58:56 +00:00
committed by Space
parent 1dad549c81
commit 1f6f996faf
@@ -86,7 +86,7 @@ kotlin {
"-lsetupapi",
"-mwindows"
)
presets["linuxArm32Hfp"] -> linkerOpts("-lSDL2")
presets["linuxArm32Hfp"] -> linkerOpts(kotlinNativeDataPath.resolve("dependencies/target-sysroot-2-raspberrypi/usr/lib/libSDL2.so").absolutePath)
}
val distTaskName = linkTaskName.replaceFirst("link", "dist")