Explorar o código

BUG: Added support to library flags parser for -Wl and -R options.

Brad King %!s(int64=22) %!d(string=hai) anos
pai
achega
39bf5916e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmLocalUnixMakefileGenerator.cxx

+ 1 - 1
Source/cmLocalUnixMakefileGenerator.cxx

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