This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
David Edelsohn wrote: > If the library is built as a shared library, one can get the > --disable-shared behavior by linking it non-shared (gcc -static which > invokes AIX ld with -bnso). This makes it a user choice instead of > limiting the options by choosing --disable-shared at build time. > --disable-shared obtains the same effect but limits the users options and > makes the library less like the functionality on other platforms. Where's > the advantage? -static links everything statically, like system libc, X libraries etc., not only libgcc and libstdc++. Also the shared libstdc++.a contains a single sharable object, and -static would include that in full, while if you link with the static libstdc++ only the objects needed would be included. The best would be to put both the shared object and the individual .o files into libstdc++.a, or make libstdc++.a static and libstdc++_s.a shared and provide a -static-libstdc++ option, just like there is already a -static-libgcc option. Zoli
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |