summaryrefslogtreecommitdiff
path: root/packages/llvm/llvm-2.4
diff options
context:
space:
mode:
authorRobert Schuster <rschus@entw2.(none)>2009-01-07 13:21:17 +0100
committerRobert Schuster <rschus@entw2.(none)>2009-01-07 13:21:17 +0100
commitf9754fa7c55f05cd6ca5e6ebbd34dd6693c601c1 (patch)
tree40412cd332c4294cf1444d22bdde621c5850394f /packages/llvm/llvm-2.4
parent5571d638e73cd947ce91c5705d320b1314a98188 (diff)
llmvm 2.4: New recipe.
Diffstat (limited to 'packages/llvm/llvm-2.4')
-rw-r--r--packages/llvm/llvm-2.4/fix-build.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/llvm/llvm-2.4/fix-build.patch b/packages/llvm/llvm-2.4/fix-build.patch
new file mode 100644
index 0000000000..dee06f3c36
--- /dev/null
+++ b/packages/llvm/llvm-2.4/fix-build.patch
@@ -0,0 +1,35 @@
+Index: llvm-2.4/Makefile.rules
+===================================================================
+--- llvm-2.4.orig/Makefile.rules 2009-01-05 16:16:53.693946445 +0100
++++ llvm-2.4/Makefile.rules 2009-01-05 16:17:18.149945262 +0100
+@@ -436,7 +436,7 @@
+ ifdef EXAMPLE_TOOL
+ LD.Flags += -rpath $(ExmplDir) -export-dynamic
+ else
+- LD.Flags += -rpath $(ToolDir) -export-dynamic
++ LD.Flags += -export-dynamic
+ endif
+ endif
+
+Index: llvm-2.4/lib/ExecutionEngine/JIT/JIT.cpp
+===================================================================
+--- llvm-2.4.orig/lib/ExecutionEngine/JIT/JIT.cpp 2009-01-05 15:36:34.901945895 +0100
++++ llvm-2.4/lib/ExecutionEngine/JIT/JIT.cpp 2009-01-05 15:39:21.580362436 +0100
+@@ -65,7 +65,7 @@
+ }
+
+
+-#if defined (__GNUC__)
++#if defined (__GNUC__) && ! defined (__ARM_EABI__)
+
+ // libgcc defines the __register_frame function to dynamically register new
+ // dwarf frames for exception handling. This functionality is not portable
+@@ -225,7 +225,7 @@
+ }
+
+ // Register routine for informing unwinding runtime about new EH frames
+-#if defined(__GNUC__)
++#if defined(__GNUC__) && ! defined(__ARM_EABI__)
+ #if defined(__APPLE__)
+ struct LibgccObjectInfo* LOI = (struct LibgccObjectInfo*)
+ _keymgr_get_and_lock_processwide_ptr(KEYMGR_GCC3_DW2_OBJ_LIST);