This patch only workaound cygwin specific issue for --libs.
FYI, current upstream LLVM devs do not interest --enable-shared
llvm-config as NAKAMURA Takumi said.
http://llvm.org/bugs/show_bug.cgi?id=13430
https://twitter.com/chapuni/status/407790915382558720

Signed-off-by: KIMURA Masaru <[email protected]>
---
 3.1-llvm-config.patch |   34 ++++++++++++++++++++++++----------
 llvm.cygport          |    2 +-
 2 files changed, 25 insertions(+), 11 deletions(-)

diff --git a/3.1-llvm-config.patch b/3.1-llvm-config.patch
index e5cd2b7..330844f 100644
--- a/3.1-llvm-config.patch
+++ b/3.1-llvm-config.patch
@@ -1,11 +1,25 @@
---- origsrc/llvm-3.1.src/tools/llvm-config/llvm-config.cpp     2012-05-15 
17:06:08.000000000 -0500
-+++ src/llvm-3.1.src/tools/llvm-config/llvm-config.cpp 2012-07-04 
16:49:45.965537100 -0500
-@@ -279,7 +279,7 @@ int main(int argc, char **argv) {
-         OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS
-            << ' ' << LLVM_SYSTEM_LIBS << '\n';
-       } else if (Arg == "--libs") {
--        PrintLibs = true;
+--- origsrc/llvm-3.1.src/tools/llvm-config/llvm-config.cpp     2013-12-05 
09:41:03.214992500 +0900
++++ src/llvm-3.1.src/tools/llvm-config/llvm-config.cpp 2013-12-05 
10:12:08.462285800 +0900
+@@ -335,6 +335,10 @@
+       } else if (PrintLibFiles) {
+         OS << ActiveLibDir << '/' << Lib;
+       } else if (PrintLibs) {
++        // FIXME: Do not print modular libs until llvm-config is really fixed.
 +        OS << "-lLLVM-" << PACKAGE_VERSION << '\n';
-       } else if (Arg == "--libnames") {
-         PrintLibNames = true;
-       } else if (Arg == "--libfiles") {
++        break;
++
+         // If this is a typical library name, include it using -l.
+         if (Lib.startswith("lib") && Lib.endswith(".a")) {
+           OS << "-l" << Lib.slice(3, Lib.size()-2);
+@@ -347,8 +351,9 @@
+     }
+     OS << '\n';
+   } else if (!Components.empty()) {
+-    errs() << "llvm-config: error: components given, but unused\n\n";
+-    usage();
++    // FIXME: Do nothing until llvm-config is really fixed.
++    // errs() << "llvm-config: error: components given, but unused\n\n";
++    // usage();
+   }
+ 
+   return 0;
diff --git a/llvm.cygport b/llvm.cygport
index 8fead96..22e0fcb 100644
--- a/llvm.cygport
+++ b/llvm.cygport
@@ -2,7 +2,7 @@ inherit ocaml python python3
 
 NAME="llvm"
 VERSION=3.1
-RELEASE=3
+RELEASE=4
 CATEGORY="Interpreters Devel"
 SUMMARY="LLVM bytecode interpreter and toolchain"
 DESCRIPTION="The LLVM Core libraries provide a modern source- and target-
-- 
1.7.9


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to