tstellar / rpms / llvm

Forked from rpms/llvm 2 years ago
Clone
bd03f3
diff -up llvm-3.2.src/tools/llvm-config/llvm-config.cpp.jx llvm-3.2.src/tools/llvm-config/llvm-config.cpp
bd03f3
--- llvm-3.2.src/tools/llvm-config/llvm-config.cpp.jx	2013-03-07 07:13:24.000000000 -0500
bd03f3
+++ llvm-3.2.src/tools/llvm-config/llvm-config.cpp	2013-03-07 07:39:26.485677609 -0500
bd03f3
@@ -316,7 +316,9 @@ int main(int argc, char **argv) {
bd03f3
   if (!HasAnyOption)
bd03f3
     usage();
bd03f3
 
bd03f3
-  if (PrintLibs || PrintLibNames || PrintLibFiles) {
bd03f3
+  if (PrintLibs) {
94fba1
+    OS << "-lLLVM-3.3svn";
bd03f3
+  } else if (PrintLibNames || PrintLibFiles) {
bd03f3
     // If no components were specified, default to "all".
bd03f3
     if (Components.empty())
bd03f3
       Components.push_back("all");
bd03f3
@@ -335,15 +337,6 @@ int main(int argc, char **argv) {
bd03f3
         OS << Lib;
bd03f3
       } else if (PrintLibFiles) {
bd03f3
         OS << ActiveLibDir << '/' << Lib;
bd03f3
-      } else if (PrintLibs) {
bd03f3
-        // If this is a typical library name, include it using -l.
bd03f3
-        if (Lib.startswith("lib") && Lib.endswith(".a")) {
bd03f3
-          OS << "-l" << Lib.slice(3, Lib.size()-2);
bd03f3
-          continue;
bd03f3
-        }
bd03f3
-
bd03f3
-        // Otherwise, print the full path.
bd03f3
-        OS << ActiveLibDir << '/' << Lib;
bd03f3
       }
bd03f3
     }
bd03f3
     OS << '\n';