static version of libgcc_s.so.1...

Ian Lance Taylor ian@wasabisystems.com
Tue Apr 20 11:50:00 GMT 2004


"Venkatakrishnan, V" <v.venkatakrishnan@sdi.usa.xerox.com> writes:

> Ian,
> 	I'm doing something like
> g++ myapp.C -L/path1 -L/path2 -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic
> -lmySharedLib -o myApp
> 	Isn't this what you've mentioned?
> 
> 	and this still has a dependency on libgcc_s.so.1 as well as
> libstdc++.so.4.

No, there is an option "-static-libgcc".  See the docs.

Ian



More information about the Gcc-help mailing list