Resolving cyclic library dependencies (native plugin)

Hi All,
I have some legacy native project that I would like to port to Gradle.
The project contains a lot of static libraries, that have a cyclic dependencies :frowning: .
I can’t find a solution to specify library several times or add “-Wl,–start-group” and “-Wl,–end-group” switches in Gradle (except changing Gradle sources at platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/gcc/ by adding start and end group around library loop).
Does there exist solution for such use case that does not require changes in Gradle sources?