Boost logo

Boost-Build :

Subject: [Boost-build] MATCH regular expression question.
From: Aparna Kumta (aparna.kumta_at_[hidden])
Date: 2015-11-06 16:22:00

  In tools/build/src/tools/sun.jam, lines 153-156 contain

153: actions link.dll bind LIBRARIES
154: {
"$(<)" -h$(<[1]:D=) -G "$(>)" "$(LIBRARIES)" -Bdynamic -l$(FINDLIBS-SA)
156: }

When compiling with -std=c++[03,11,14] I need to replace '-G'
above with '-G -library=stdcpp,CrunG3'

I tried the following to just check for 'std'

actions link.dll bind LIBRARIES
    if [ MATCH "(std)" : $(OPTIONS) ]
"$(<)" -h$(<[1]:D=) -G -library=stdcpp,CrunG3 "$(>)" "$(LIBRARIES)"
-Bdynamic -l$(FINDLIBS-SA) -Bstatic -l$(FINDLIBS-ST) -B$(LINK-RUNTIME)

I see the following error in my bjam.log file:

/bin/sh[2]: syntax error at line 2 : `if' unmatched

I'm not sure what might be wrong here.
Any suggestions?



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at