> > Nuts! Didn't work! Got error: > > /usr/bin/ld: cannot find -lgcc_s > > collect2: ld returned 1 exit status
The first tool to use for finding out what happens with gcc linking is gcc -v. This shows the complete linker command line as constructed by gcc. Some libs are even included multiple times. It is often useful to copy that ld line from the screen into the command line for testing minor modifications. This output also shows that the gcc options -static, -shared are position-independent and used for controlling the entire linking process, and therefore no good for controlling the linking of individual libraries. You want to heavily make use of gcc -Wl,... but note that's compiler/binutils dependent (as are, quite frankly the rest of the compiler options although they tend to be more "standardised"). Volker -- Volker Kuhlmann is list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
