Boost logo

Boost-Build :

Subject: [Boost-build] instruction-set core2 native; link --as-needed; -fomit-frame-pointer -fno-stack-protector
From: Serhat Şevki Dinçer (jfcgauss_at_[hidden])
Date: 2009-09-03 23:43:49


Hi

Attached are three suggestion patches for Boost.Build where
1st adds core2 (available as of gcc 4.3) and 'native' (available as of
gcc 4.2) x86 instruction-set's (for -march; usable with 'bjam ..
architecture=x86 ..'),
2nd adds an optimization for 'linking' (not for compiling; resulting
boost libraries do have unused dependencies otherwise, as reported by
'ldd -r -u'),
3rd adds '-fomit-frame-pointer -fno-stack-protector' to optimization
flags because the former flag is 'not guaranteed' to be chosen for -O
and above, and -fstack-protector (available as of gcc 4.1) is 'set' by
default on Ubuntu 6.10 and later.

With the patches applied, I get a successful build with
bjam -d+2 --without-mpi --layout=system variant=release link=shared
threading=multi runtime-link=shared architecture=x86 install
on my Ubuntu 9.04 amd64 desktop for Boost 1.40.

Thanks,
Serhat






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