libstdc++.a and PIC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We produce shared libraries which are used on different computers than those
which they were produced on. In order to minimize dependencies and to avoid
trouble with users' settings of LD_LIBRARY_PATH we prefer to link those shared
libraries against static libraries wherever possible.

I would thus like to configure gcc with "--disable-shared" in order to avoid
referencing libstdc++.so. Linking static libraries into shared libraries
requires that those static libraries were compiled with -fPIC, at least under
Solaris and the x86_64 Opteron architecture.

Is there a way to use "--disable-shared" and get libstdc++.a compiled using
"-fPIC"? So far my attempts were unsuccessful for gcc 4.0.3 and 4.1.0.


Thank you for any suggestions

Michael Heissmeier

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux