[llvm] r197583 - Revert r197380, "llvm-config: Print SYSTEM_LIBS with --libs, instead of --ldflags."

NAKAMURA Takumi geek4civic at gmail.com
Wed Dec 18 08:21:16 PST 2013


Author: chapuni
Date: Wed Dec 18 10:21:16 2013
New Revision: 197583

URL: http://llvm.org/viewvc/llvm-project?rev=197583&view=rev
Log:
Revert r197380, "llvm-config: Print SYSTEM_LIBS with --libs, instead of --ldflags."

I will introduce another flag, like --system-libs, later.

Modified:
    llvm/trunk/tools/llvm-config/llvm-config.cpp

Modified: llvm/trunk/tools/llvm-config/llvm-config.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-config/llvm-config.cpp?rev=197583&r1=197582&r2=197583&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config/llvm-config.cpp (original)
+++ llvm/trunk/tools/llvm-config/llvm-config.cpp Wed Dec 18 10:21:16 2013
@@ -285,7 +285,8 @@ int main(int argc, char **argv) {
       } else if (Arg == "--cxxflags") {
         OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n';
       } else if (Arg == "--ldflags") {
-        OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
+        OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS
+           << ' ' << LLVM_SYSTEM_LIBS << '\n';
       } else if (Arg == "--libs") {
         PrintLibs = true;
       } else if (Arg == "--libnames") {
@@ -359,13 +360,6 @@ int main(int argc, char **argv) {
         OS << ActiveLibDir << '/' << Lib;
       }
     }
-
-    // Print system libs in the next line.
-    // Assume LLVMSupport depends on system_libs.
-    // FIXME: LLVMBuild may take care of dependencies to system_libs.
-    if (PrintLibs)
-      OS << '\n' << LLVM_SYSTEM_LIBS;
-
     OS << '\n';
   } else if (!Components.empty()) {
     errs() << "llvm-config: error: components given, but unused\n\n";





More information about the llvm-commits mailing list