you don't have to flag a library as shared, I think it's optional under gcc, infact I seem to remember reading somewhere that the init and fini stuff does not work well when compiled shared, i could be wrong though.

I'll try some tests under GCC and see if I can get a dump of the code I'll post it over on this
thread on the free pascsal community site.