components/llvm/patches/023-solaris-LLVM-tools-llvm-config.patch
author John Beck <John.Beck@Oracle.COM>
Thu, 08 Sep 2016 09:45:54 -0700
changeset 6864 45128c94429d
parent 6512 92717ce71105
permissions -rw-r--r--
24615249 work around pkgdepend issue to publish rjsmin on S11

# Miscellaneous fixes for Solaris.
# 3.9.X upstream.
--- tools/llvm-config/llvm-config.cpp	2016-01-12 02:23:58.000000000 -0500
+++ tools/llvm-config/llvm-config.cpp	2016-05-23 12:20:06.121494348 -0400
@@ -440,6 +440,9 @@
       } else if (Arg == "--cxxflags") {
         OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n';
       } else if (Arg == "--ldflags") {
+        if (HostTriple.isOSSolaris())
+          OS << LLVM_LDFLAGS << '\n';
+        else
         OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
       } else if (Arg == "--system-libs") {
         PrintSystemLibs = true;