>I have seen a -Bdynamic options for ld, the -shared option for gcc. > Do you know if gcc can be instructed to use shared/static libs on a file-by-file basis? Atleast for my version of gcc, it's an all or nothing deal, but ld seems to have this capability.