浏览代码

BUG: Need to recognize -B linker options.

Brad King 21 年之前
父节点
当前提交
81bd499376
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmLocalUnixMakefileGenerator.cxx

+ 1 - 1
Source/cmLocalUnixMakefileGenerator.cxx

@@ -785,7 +785,7 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
     // if a variable expands to nothing.
     if (lib->first.size() == 0) continue;
     // if it is a full path break it into -L and -l
-    cmsys::RegularExpression reg("^([ \t]*\\-[lWR])|([ \t]*\\-framework)|(\\${)|([ \t]*\\-pthread)|([ \t]*`)");
+    cmsys::RegularExpression reg("^([ \t]*\\-[lWRB])|([ \t]*\\-framework)|(\\${)|([ \t]*\\-pthread)|([ \t]*`)");
     if(lib->first.find('/') != std::string::npos
        && !reg.find(lib->first))
       {