llvm2.7 2.7: Build with shared library, added patch to work around not correctly linking libgcc.
# 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.
--- /dev/null
+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
+
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 \
"