Renamed dynamic shared libstdc++.so.* libs in /usr/local/lib, now my build links against the static libs.
Thanks very much. [EMAIL PROTECTED] wrote: > first, you need a static version of the library: libstdc++.a > > The problem is, that if libstdc++.a is found in the same directory > as libstdc++.so, g++ preferres the shared lib. For libc.so/libc.a > this can be changed by "-static-libgcc". Unfortunately an equivalent > option like " -static-libstc++" is missing for gcc. > > The solution I found: mv cp or just link the static libstdc++.a > to a seperate directory (may even be ".") and point the > linker to it with: "-L." > > So you don't need to make the whole binary static. > Shared solaris system libs are OK. You may verify the > shared libs requred with the "ldd" utility. _______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
