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)

 

is

 

base_dir (Jamroot is here)

|

|_dir1-Jamfile1

|

|_dir2_Jamfile2

 

inside Jamroot I start with something like

 

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

using intel : : : <cxxflags>"-fPIC -ansi -funroll-loops -cxxlib-gcc -openmp -wd654 -wd10010" <cflags>"-fPIC -funroll-loops -cxxlib-gcc -openmp -wd654 -wd10010" ;

using sun : : : <cflags>" -w -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0" <cxxflags>" -w -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0" <linkflags>" -w -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0" ;

using clang : : /home/riccardo/clang_svn/build/Release/bin/clang : <cxxflags>" -fPIC -ansi -funroll-loops -ffast-math -Wno-unknown-pragmas " <cflags>" -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 define

obj : special_file.cpp  : <cxxflags>”whatever1” <cflags>”list of ops” ;

as 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 here:

http://kratos.cimne.upc.es/trac/browser/kratos

(Common_Jamroot is renamed as Jamroot)

 

while the problematic Jamfile is:

http://kratos.cimne.upc.es/trac/browser/kratos/applications/MeshingApplication/custom_external_libraries/tetgen/tetgen1.4.0

 

Thank you for any hint

Riccardo