3) Bugger around with the -Wl, option to talk directly to ld instead of via the gcc wrapper. (Hint the program gcc is just a wrapper that parses options, adds some more and invokes the real preprocessor / compiler / assembler / linker.)
I was playing with linking a week ago and found this info. http://gcc.gnu.org/ml/gcc/2001-07/msg01447.html HTH Col.
