components/llvm/patches/023-solaris-LLVM-tools-llvm-config.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Mon, 24 Oct 2016 23:32:49 -0700
changeset 7209 d19b72e9391b
parent 6512 92717ce71105
permissions -rw-r--r--
23245313 Move gnome-terminal to Userland and update to 3.18.2 PSARC/2016/375 GNOME apps and icons

# 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;