How do I include all shared libraries in a folder when compiling a cinterop artifact?

I have a folder with many .so files. I do not know which of them is the one needed by my .h. How do I tell the linker to search in that folder?

Gradle file:

plugins {
    id "org.jetbrains.kotlin.konan" version "0.9.2"
}
        
konanArtifacts {
    interop('roc') {
        includeDirs "${project.rootDir}/src/main/c_interop/"
        linkerOpts "-L${project.rootDir}/src/main/c_interop/libs -lroc"
    }
    program("nrt"){
       libraries {
            artifact 'roc'
        }
    }
}

.def file:

headers = roc.h
package = roc