Linking Question -- Static vs. Dynamic
Can one of you gurus tell me how to instruct gcc to STATICALLY link one
particular library, while dynamically linking to all the others?
I wish to link an application with the static libstdc++.a archive, while
allowing all other Linux libraries to be linked dynamically. My
understanding is that ld will search through the library directories and
preferentially link with shared libraries over static. Since I have
both a static and dynamic version of libstdc++, how do I force ld to
choose the static archive? I have already tried putting the archive
name into the object list of the makefile, which didn't seem to work.
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org