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]

Re: linking with libstdc++


On Wed, Jul 24, 2002 at 12:25:30PM +0400, Michael Fimin wrote:
> How to link libstdc++ with -fpic option? Is there any standard build script
> exists?

By default only the .so is built with -fpic/-fPIC.  You can configure with

    --enable-cxx-flags='-fPIC'

to pass -fPIC all the time while the library is building.


> My platform is Solaris and version of GCC is 2.95.2.

See the status page on building with GCC 2.x.  The library is meant to be
used with GCC 3.x.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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