linkerOpts

abstract fun linkerOpts(vararg values: String)

Adds additional linker options. It's equivalent to the -linker-options cinterop tool option.

Usage example

kotlin {
linuxX64() {
compilations.getByName("main") {
cinterops {
val cinterop by creating {
defFile(project.file("custom. def"))
linkerOpts("-lNativeBase64")
}
}
}
}
}

Parameters

values

linker options


abstract fun linkerOpts(values: List<String>)

Adds additional linker options. It's equivalent to the -linker-options cinterop tool option.

Usage example

kotlin {
linuxX64() {
compilations.getByName("main") {
cinterops {
val cinterop by creating {
defFile(project.file("custom. def"))
linkerOpts(listOf("-lNativeBase64"))
}
}
}
}
}

Parameters

values

List of linker options

See also