Boost logo

Boost-Build :

From: Martin Wille (mw8329_at_[hidden])
Date: 2003-08-15 13:25:37


while I was trying to identify a bug in Boost.Test I stumbled
across some odd behaviour of Boost.Build.

I ran the regression tests for como-4.3.3beta8 using the command
bjam -sTOOLS=... -sBUILD="<define>_POSIX_SOURCE" --dump-tests test
in the status directory.

However, apparently, -D_POSIX_SOURCE isn't used for all
invokations of como-C++-action; the commandline used for
compiling execution_monitor.cpp is:

/usr/local/como-4.3.3beta8/bin/como -tused -c --no_inlining -O0 -g
--exceptions -I"../libs/test/build" -I"/home/boost-head-comeau/boost"

The commandline used for compiling cregex.cpp is:
/usr/local/como-4.3.3beta8/bin/como -tused -c
-DBOOST_REGEX_NO_LIB=1 --no_inlining -O0 -g --exceptions
-I"../libs/regex/build" -I"/home/boost-head-comeau/boost" -o

However, other source files are compiled with -D_POSIX_SOURCE, e.g.:
/usr/local/como-4.3.3beta8/bin/como -tused -c -D_POSIX_SOURCE
--no_inlining -O0 -g --exceptions -I"../libs/math/test"
-I"/home/boost-head-comeau/boost" -o

The Jamfile used for regex uses <define> itself. I can imagine
that this interferes with the <define> on the commandline.

However, I'm clueless why execution_monitor.cpp is compiled without
any define.

Is this a bug or am I missing something?


PS: como-tools.jam doesn't show any copyright or license text.

PPS: m should be added to FINDLIBS in como-tools.jam, IMHO. I think
I mentioned that when I sent my version of that file to you, Jens.


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