Static linking.

oliver oliver@zeroknowledge.com
Wed Jun 7 09:18:00 GMT 2000


Hi,

	I'm working on a commercial app. which is being proted to linux from win32.
Since our existing code makes extensive use of STL, I've been looking at
using libstdc++-v3 to make this effort easier. For distribution, in order to
keep our memory footprint small, I would like to static link against
libstdc++ only, leaving libc et al dynamic. The goal is not to have to
distribute any extra libs with our app.

	After playing with gcc and ld extensively, I haven't managed to get this to
work (gcc 2.95.3). Does anyone have some advice here?

	AFIK this can be done pretty easily with local modifications to library
directories, but the goal is to do it all on the comand line so we don't
have to have development environments that are hopelessly mung'd. What is
the best way to accomplish this?

Tia,
~ol




More information about the Libstdc++ mailing list