This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

linking with libstdc++


Does anybody tried to link statically with libstdc++ to produce shared object
(*.so) library?

The problem is that libstdc++.a is linked without -fpic option that allows
loader to relocate shared object at any address.

I'm going to link many shared objects that will dynamically and simultaneously
load into the same address space and all them will be linked against libstdc++.
But this impossible without -fpic option in libstdc++.

How to link libstdc++ with -fpic option? Is there any standard build script
exists?

My platform is Solaris and version of GCC is 2.95.2.

Any help would be greatly apreciated.


------------------------------------
Mail.Ru - удобно, доступно, надежно!
------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]