فهرست منبع

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

Brad King 21 سال پیش
والد
کامیت
39bf5916e1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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 (lib->first.size() == 0) continue;
     // 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
        && !reg.find(lib->first))
       {