在bjam中添加-L到项目

时间:2011-08-05 13:33:24

标签: linker bjam

我的项目中有boost_iostreams,它取决于bzip2和zlib。因此运行

export LIBRARY_PATH=/apps/bzip2/lib:/apps/zlib/lib

然后运行bjam link=static

有没有办法在Jamroot中设置它,以便不需要环境变量?

目前的Jamroot:

project infracore
        : requirements
          <include>$(PROJECT_ROOT)_install
          <include>$(BOOST_INCLUDE_BASE)
          <include>$(BZIP2_INCLUDE_BASE)
          <library>/boost/filesystem//boost_filesystem
          <library>/boost/system//boost_system
          <library>/boost/date_time//boost_date_time
          <library>/boost/iostreams//boost_iostreams
          <variant>debug:<inlining>off
          <variant>debug:<debug-symbols>on
          <variant>debug:<optimization>off
          <variant>debug:<warnings>on
          <variant>release:<warnings>on
          <link>static
        ;

# Libraries
build-project UtilsCode ;
build-project ProfilerCode ;
build-project CommonDataStructuresCode ;
build-project Math ;

# Executibles
build-project fixfast ;
build-project Tools ;
build-project RiskConsole ; #u2ic

1 个答案:

答案 0 :(得分:1)

试试这个:

<library-path>/apps/bzip2/lib
<library-path>/apps/zlib/lib