llvm.org GIT mirror llvm / 56c390e
llvm-config: Print SYSTEM_LIBS with --libs, instead of --ldflags. LLVM libs are printed in the first line, and system libs are printed in the next line. $ bin/llvm-config --libs object -lLLVMObject -lLLVMSupport -lrt -ldl -ltinfo -lpthread -lz It is workaround for PR3347 and PR8449. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197380 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 5 years ago
1 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
277277 } else if (Arg == "--cxxflags") {
278278 OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n';
279279 } else if (Arg == "--ldflags") {
280 OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS
281 << ' ' << LLVM_SYSTEM_LIBS << '\n';
280 OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
282281 } else if (Arg == "--libs") {
283282 PrintLibs = true;
284283 } else if (Arg == "--libnames") {
357356 OS << ActiveLibDir << '/' << Lib;
358357 }
359358 }
359
360 // Print system libs in the next line.
361 // Assume LLVMSupport depends on system_libs.
362 // FIXME: LLVMBuild may take care of dependencies to system_libs.
363 if (PrintLibs)
364 OS << '\n' << LLVM_SYSTEM_LIBS;
365
360366 OS << '\n';
361367 } else if (!Components.empty()) {
362368 errs() << "llvm-config: error: components given, but unused\n\n";