$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Wieger Wesselink (wieger_at_[hidden])
Date: 2003-09-02 09:05:47
Hello,
I have encountered a small problem when using BBV2 on Red Hat linux
with g++. When building a statically linked executable that depends
on a library, linking goes wrong: /usr/bin/ld: cannot find -lgcc_s.
My jamfile looks like this:
project sat
: requirements <include>../boost
<include>..
<library>../buddy22/src//buddy
<library>../boost/libs/program_options/build//program_options
;
exe reach
: reach.cpp
:
: <link-runtime>static
<link>static
<variant>release
;
The link command of BBV2 has the form 'g++ -s ...'. This works fine
on cygwin, but not on linux. If I replace -s by -static, it does
work on linux.
Best regards,
Wieger