This is the mail archive of the gcc-help@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]
Other format: [Raw text]

libstdc++ static/shared linkage


  Is it possible to build shared C++ libraries using gcc 3.1 without
bringing any symbols in from libstdc++ but then link against the static
libstdc++ library at the final link step?  We would prefer not to
distribute the gcc libs with our application so would like no external
dependencies on libgcc/libstdc++.  If we build gcc with
--disable-shared, however, each .so we build becomes huge since it
brings so many symbols in from libstdc++.a.
  If there is no way to do this, the only two options I see are linking
everything against the shared libstdc++.so and shipping it with the
application or linking everything against the static libstdc++.a and
living with the huge resulting .so's (which I can't imagine will speed
anything up at run-time).  Is there any other way to achieve what we
want?

If you need any clarification/example code, please let me know.

Thanks in advance,
Bill 


-- 
Bill Jester
Software Development Specialist
adapco
1516 E. Palm Valley Blvd.
Building B, Suite 1
Round Rock, Texas  78664
Phone:   (512) 733-1070 x302
E-mail:  jester@adapco.com


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