Not absolutely sure but perhaps, replace -shared with
-dynamiclib
Or have a peek here for variations on a theme:
http://fink.sourceforge.net/doc/porting/shared.php?phpLang=en
At worst, it will just fail :)
.. depending on what the intended purpose was.
--