Skip to content

Commit 3a551de

Browse files
authored
Fix #30
1 parent eb820d6 commit 3a551de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ open class CargoBuildTask : DefaultTask() {
190190
environment("RUST_ANDROID_GRADLE_LINKER_WRAPPER_PY",
191191
File(project.rootProject.buildDir, "linker-wrapper/linker-wrapper.py").path)
192192
environment("RUST_ANDROID_GRADLE_CC", cc)
193-
environment("RUST_ANDROID_GRADLE_CC_LINK_ARG", "-Wl,-soname,lib${cargoExtension.libname!!}.so")
193+
environment("RUST_ANDROID_GRADLE_CC_LINK_ARG",
194+
"-o,target/${toolchain.target}/${cargoExtension.profile}/lib${cargoExtension.libname!!}.so")
194195
}
195196

196197
cargoExtension.extraCargoBuildArguments?.let {

0 commit comments

Comments
 (0)