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: {
155: "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o
"$(<)" -h$(<[1]:D=) -G "$(>)" "$(LIBRARIES)" -Bdynamic -l$(FINDLIBS-SA)
-Bstatic -l$(FINDLIBS-ST) -B$(LINK-RUNTIME)
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) ]
    {
     "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o
"$(<)" -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?

Thanks,

Aparna


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