How to add syslib in gradle

I am working on conversion of ant script to gradle. In Ant, linker provides options to add system library, how can I do same thing in Gradle? How can I make it generic across different platforms?
For example in ant