title: Cross compile Boost 1.40 for VxWorks 6.4
body: <p>I'm trying to migrate a project which uses Boost (particularly boost::thread and boost::asio) to VxWorks.</p>
  
  <p>I can't get boost to compile using the vxworks gnu compiler. I figured that this wasn't going to be an issue as I'd seen patches on the boost trac that purport to make this possible, and since the vxworks compiler is part of the gnu tool chain I should be able to follow the directions in <a href="http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html" rel="nofollow noreferrer">the boost docs</a> for cross compilation.</p>
  
  <p>I'm building on windows for a ppc vxworks.</p>
  
  <p>I changed the user-config.jam file as specified in the boost docs, and used the target-os=linux option to bjam, but bjam appears to hang before it can compile. Closer inspection of the commands issued by bjam (by invoking it using the -n option) reveal that it's trying to compile with boost::thread's win32 files. This can't be right, as vxworks uses pthreads.</p>
  
  <p>My bjam command: <code>.\bjam --with-thread toolset=gcc-ppc target-os=linux</code> gcc-ppc is set in user-config to point to the g++ppc vxworks cross compiler.</p>
  
  <p>What am I doing wrong? I believe I have followed the docs to the letter.</p>