llvm.inc: fixed typo.
authorRobert Schuster <robertschuster@fsfe.org>
Fri, 11 Jun 2010 11:20:00 +0000 (13:20 +0200)
committerRobert Schuster <robertschuster@fsfe.org>
Fri, 11 Jun 2010 11:21:21 +0000 (13:21 +0200)
llvm2.7 2.7: Build with shared library, added patch to work around not correctly linking libgcc.

recipes/llvm/llvm.inc
recipes/llvm/llvm2.7/link.patch [new file with mode: 0644]
recipes/llvm/llvm2.7_2.7.bb

index 3c22318..3e11318 100644 (file)
@@ -13,7 +13,7 @@
 # fixed (report bug).
 #
 # However the *recipe* for your program/library *must* declare
-# export WANT_LLVM_RELEASE = "<valid version number>
+# export WANT_LLVM_RELEASE = "<valid version number>"
 # The version number is picked up by a generic wrapper script which just calls
 # the variant of the specified version.
 
diff --git a/recipes/llvm/llvm2.7/link.patch b/recipes/llvm/llvm2.7/link.patch
new file mode 100644 (file)
index 0000000..059bd92
--- /dev/null
@@ -0,0 +1,12 @@
+Index: llvm-2.7/tools/llvm-shlib/Makefile
+===================================================================
+--- llvm-2.7/tools/llvm-shlib/Makefile (revision 103711)
++++ llvm-2.7/tools/llvm-shlib/Makefile (working copy)
+@@ -56,5 +56,5 @@
+     LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) 
+                        -Wl,--no-whole-archive
+     # Don't allow unresolved symbols.
+-    LLVMLibsOptions += -Wl,--no-undefined
++    LLVMLibsOptions += -lgcc -Wl,--no-undefined
+ endif
+
index b72581c..623f6fa 100644 (file)
@@ -1,17 +1,19 @@
 require llvm.inc
 
-PR = "r0"
+PR = "r1"
 
 DEPENDS = "llvm-common llvm2.7-native"
 
 SRC_URI = "\
   http://llvm.org/releases/${PV}/llvm-${PV}.tgz \
   file://BX_to_BLX.patch \
+  file://link.patch \
   "
 
 EXTRA_OECMAKE += "\
         -DLLVM_TARGET_ARCH:STRING=${LLVM_ARCH} \
         -DLLVM_ENABLE_ASSERTIONS:BOOL=ON \
+               -DBUILD_SHARED_LIBS:BOOL=ON \
         -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
        "