$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-build] Include / library configuration in site-config.jam
From: Christian Auby (christian_at_[hidden])
Date: 2010-01-06 06:54:12
I have two compilers defined, gcc and gcc-arm, for x86 and arm respectively.
I want to have separate include and library folders depending on which
compiler I am using, so I have this in my site-config.jam:
----
project
: requirements
<include>/usr/local/boost
<toolset>gcc-arm:<include>/usr/include/arm
<toolset>gcc:<library-path>/usr/local/boost/stage_x86/lib
<toolset>gcc-arm:<library-path>/usr/local/boost/stage_arm/lib
;
----
However, compiling hello world with "bjam toolset=gcc-arm -d+2" gives me
this:
---
bjam toolset=gcc-arm -d+2 -a
gcc.compile.c++ bin/gcc-arm/debug/hello.o
"arm-none-linux-gnueabi-g++" -ftemplate-depth-128 -O0 -fno-inline
-Wall -g -march=armv4t -fPIC -I"/usr/local/boost" -c -o
"bin/gcc-arm/debug/hello.o" "hello.cpp"
gcc.link bin/gcc-arm/debug/hello
"arm-none-linux-gnueabi-g++" -L"/usr/local/boost/stage_x86/lib" -o
"bin/gcc-arm/debug/hello" -Wl,--start-group "bin/gcc-arm/debug/hello.o"
-Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g
----
"<toolset>gcc:" seems to also match "gcc-arm", and "<toolset>gcc-arm:"
matches nothing.
I guess this might be me using the conditionals wrong but I'm not sure.
regards,
Christian