Boost logo

Boost-Build :

Subject: Re: [Boost-build] Linking static with libstdc++
From: Bo Jensen (jensen.bo_at_[hidden])
Date: 2011-03-29 12:19:20

On Tue, Mar 29, 2011 at 10:11 AM, Bo Jensen <jensen.bo_at_[hidden]> wrote:
> Yeah I know some people think it's a perverted thing to do..but I was
> hoping others on the list had done it before with
> The problem is if any shared libstdc++ is on your path then it will
> pick it up and ignore -static-libgcc, which is explained here :
> Before I throw my self into figuring out a hack, I want to make sure I
> do not overlook the obvious. has anybody done this before with
> ?
> Thanks.
> Bo

After some digging, I realized gcc have introduced -static-libstdc++
after version 4.5.2. A simple example on the commandline works fine,
so I guess I can make it work for my large build also.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at