linking with libstdc++

Michael Fimin michaelfimin@mail.ru
Wed Jul 24 01:25:00 GMT 2002


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 - ц∙ц└ц▐ц┌ц▌ц▐, ц└ц▐ц⌠ц■ц∙ц░ц▌ц▐, ц▌ц│ц└ц┘ц√ц▌ц▐!
------------------------------------



More information about the Libstdc++ mailing list