tstellar / rpms / llvm

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