Boost logo

Boost-Build :

Subject: [Boost-build] Incorrect debug library path in release link command
From: Christian Schafmeister (chris.schaf_at_[hidden])
Date: 2014-01-15 00:35:38


Hi,

I’m a pretty heavy boost-build user (using for 3 years now) - I think it’s an awesome system even if I wrestle with the complexity sometimes.

I just noticed that the release build of my application includes a -L “…/debug/lib” library path as well as a -L “…/release/lib” path.
I don’t want the -L “…/debug/lib” path in there because the release application is linking to debug libraries and while it works, it’s slow.

I have about 20 Jam files throughout my system so I don’t include them here unless asked to.

How do I figure out from where and why this -L “…/debug/lib” path is being inserted into the command line?

Here’s the command line (generated with "bjam bundle release -n”

clang-darwin.link /Users/meister/Development/new_cando/brcl/build/cando.app/Contents/MacOS/brcl_o

    "clang++" -rdynamic -stdlib=libc++ -rdynamic -stdlib=libc++ -L"/Library/Frameworks/EPD64.framework/Versions/7.2/lib" -L"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/config" -L"/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/externals/common/lib" -L"/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/externals/debug/lib" -L"/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/externals/release/lib" -o "/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/MacOS/brcl_o" "bin/clang-darwin-4.2.1/release/main.o" "/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/lib/libcore_opt.a" "/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/lib/libasttooling_opt.a" "/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/lib/libserveEvent_opt.a" "/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/lib/libsockets_opt.a" "/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/lib/libgctools_opt.a" "/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/lib/libclbind_opt.a" "/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/lib/libllvmo_opt.a" "/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/lib/libcffi_opt.a" "/Users/meister/Development/new_cando/brcl/build/cando.app/Contents/Resources/lib/libcore_opt.a" -lclangDynamicASTMatchers -lclangRewriteFrontend -lclangRewriteCore -lclangTooling -lclangParse -lclangDriver -lclangEdit -lclangAnalysis -lclangSema -lclangSerialization -lclangLex -lclangAST -lclangFrontend -lclangASTMatchers -lclangBasic -lLLVMOption -lLLVMCore -lLLVMInterpreter -lLLVMBitWriter -lLLVMBitReader -lLLVMX86AsmPrinter -lLLVMX86Desc -lLLVMX86AsmParser -lLLVMX86Utils -lLLVMX86Info -lLLVMX86Disassembler -lLLVMX86CodeGen -lLLVMObject -lLLVMipa -lLLVMInstCombine -lLLVMCodeGen -lLLVMRuntimeDyld -lLLVMMCParser -lLLVMAsmPrinter -lLLVMSelectionDAG -lLLVMTransformUtils -lLLVMScalarOpts -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMExecutionEngine -lLLVMMCJIT -lLLVMJIT -lLLVMSupport -lpython2.7 -lgmpxx -lgmp -lncurses -lreadline -lz -lexpat -lboost_python -lboost_iostreams -lboost_system -lboost_program_options -lboost_serialization -lboost_date_time -lboost_regex -lboost_filesystem -lmps -lgmpxx -lgmp -lncurses -lreadline -lz -lexpat -lboost_python -lboost_iostreams -lboost_system -lboost_program_options -lboost_serialization -lboost_date_time -lboost_regex -lboost_filesystem -lclangDynamicASTMatchers -lclangRewriteFrontend -lclangRewriteCore -lclangTooling -lclangParse -lclangDriver -lclangEdit -lclangAnalysis -lclangSema -lclangSerialization -lclangLex -lclangAST -lclangFrontend -lclangASTMatchers -lclangBasic -lLLVMOption -lLLVMCore -lLLVMInterpreter -lLLVMBitWriter -lLLVMBitReader -lLLVMX86AsmPrinter -lLLVMX86Desc -lLLVMX86AsmParser -lLLVMX86Utils -lLLVMX86Info -lLLVMX86Disassembler -lLLVMX86CodeGen -lLLVMObject -lLLVMipa -lLLVMInstCombine -lLLVMCodeGen -lLLVMRuntimeDyld -lLLVMMCParser -lLLVMAsmPrinter -lLLVMSelectionDAG -lLLVMTransformUtils -lLLVMScalarOpts -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMExecutionEngine -lLLVMMCJIT -lLLVMJIT -lLLVMSupport



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk