Boost logo

Boost-Build :

Subject: [Boost-build] problem in prescribing the build flags for a special file
From: rrossi_at_[hidden]
Date: 2011-02-22 17:45:26

Dear list,

I am having troubles in fine controlling the compilation of
a file. I checked the FAQ but is still gives me problems...

my directory
structure (simplified)


base_dir (Jamroot is here)





inside Jamroot I start with
something like

using gcc : : /usr/bin/g++-4.5 ;

using intel : : :
"-fPIC -ansi -funroll-loops -cxxlib-gcc -openmp -wd654 -wd10010" "-fPIC
-funroll-loops -cxxlib-gcc -openmp -wd654 -wd10010" ;

using sun : : : "

using clang : :
/home/riccardo/clang_svn/build/Release/bin/clang : " -fPIC -ansi
-funroll-loops -ffast-math -Wno-unknown-pragmas " " -fPIC -funroll-loops
-ffast-math " ;

which configures the settings that I nornally like to use
for my compilation

unfortunately inside "dir2" there is a "special_file"
which I need to compile with a very well defined set of options.

If I

obj : special_file.cpp : "whatever1" "list of ops" ;

suggested in the FAQ the special flags are ADDED to the list of flags
already prescribed in the Jamroot. How can I SUBSTITUTE them? (namely i
would like to have exclusively "-O0 -g"

the real code can be found online

(Common_Jamroot is
renamed as Jamroot)

while the problematic Jamfile is:

Thank you for any hint



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