Boost logo

Boost-Build :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2007-08-30 02:32:37


Phillip Seaver wrote:
> As I said in an earlier email, the gcc toolset (and msvc, for that
> matter) puts the paths to the static libraries on the link line instead
> of using the "-l" option
> ("../../bin/gcc/release/link-static/mylib.a" instead of
> "-L../../bin/gcc/release/link-static -lmylib", e.g.).

After digging in the ld man pages:

There _are_ switches for the -l switch to accomplish the correct thing.

-aarchive -llib1 -llib2 -ashared -llib3 -llib4

These will cause lib1 and lib2 to be statically linked and
lib3 and lib4 linked as shared libs.

Any comments as to why this wouldn't work?

I tested this on windows (mingw) and linux.

Roland aka speedsnail


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk