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]

linking to some libs statically, others dynamically



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.



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