Shared modules on Solaris

Hello:
I was wondering if you can tell me how to make a .so file on solaris. For example, How do I create module.so from module.c? On linux , it is gcc module.c -o module.so -shared. However, that command doens't work on solairs. Thanks in advance.

You really helped me a lot.:smiley: