I'm trying to link against xsimd, but my linking s...
# multiplatform
m
I'm trying to link against xsimd, but my linking seems to fail:
Copy code
val arTask = tasks.register<KonanArTask>("arSimd${target.name.capitalized()}", target.konanTarget).apply {
    configure {
        outputDirectory = layout.buildDirectory.dir("static/${target.name}")
        outputFileName = "libsimd_impl.a"

        for ((file, task) in entries) {
            files.from(file)
            dependsOn(task)
        }
    }
}

val arTaskImpl = arTask.get()
extraOpts("-Xsource-compiler-option", "-lsimd_impl", "-Xsource-compiler-option", "-L${arTaskImpl.outputDirectory.file(arTaskImpl.outputFileName).get()}")
results in
/usr/lib/jvm/java-17-openjdk/bin/java: symbol lookup error: /tmp/ndarray_simd18408980888108164527.so: undefined symbol: _ZN15_vec_sub_scalarclIN5xsimd4fma3INS1_4avx2EEEEEvT_Pddi
at runtime, even though the symbol is present in the libsimd_impl.a file