This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
linking to some libs statically, others dynamically
- To: gcc-help at gcc dot gnu dot org
- Subject: linking to some libs statically, others dynamically
- From: Rob Newberry <robnewberry at grouplogic dot com>
- Date: Tue, 21 Aug 2001 16:49:16 -0400 (EDT)
I'm using gcc 2.95.3 on a Solaris 8 box.
In my rather large program, I want to link against some of the system
libraries dynamically (pthread, etc). I'd like to link against other
libraries statically (libstdc++ for example). How can I tell gcc to link
this project correctly? I tried -static, but that just forced it to
ignore ALL shared libraries, which I obviously don't want to do.
Thanks in advance,
Rob
---------------------------------------------------------------------
Rob Newberry
Director of Fajita Technology
Group Logic, Inc.