This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
selective static linking
- From: Marian Ciobanu <ciobi at inbox dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 26 Oct 2009 03:24:49 -0800
- Subject: selective static linking
Hi,
When building an executable on Linux I'd like to link statically a particular library, namely Boost Serialization, while keeping the other libraries linked dynamically. Both libboost_serialization.a and libboost_serialization.so exist. I tried to play with the -l parameter, passing the actual file name or including the full path, but these didn't help.
Well, I have a workaround: rename libboost_serialization.a as libyyy.a and then use -lyyy instead of -lboost_serialization ; however, I wonder what the real solution is.
Thanks
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
Check it out at http://www.inbox.com/marineaquarium