summaryrefslogtreecommitdiff
path: root/recipes/llvm/llvm-2.5/fix-build.patch
diff options
context:
space:
mode:
authorRobert Schuster <rschus@entw2.(none)>2009-03-20 14:54:41 +0100
committerRobert Schuster <rschus@entw2.(none)>2009-03-20 14:54:41 +0100
commit968aa56f6f96489598aff9f9fe95d0cec0692e73 (patch)
treea013451abfcc8b8a1e74ed2a0eff76759f65d328 /recipes/llvm/llvm-2.5/fix-build.patch
parentf68981e2391d6081d9f1584d7d54ed6cc7dccaf2 (diff)
llvm 2.5: New recipe.
Diffstat (limited to 'recipes/llvm/llvm-2.5/fix-build.patch')
-rw-r--r--recipes/llvm/llvm-2.5/fix-build.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes/llvm/llvm-2.5/fix-build.patch b/recipes/llvm/llvm-2.5/fix-build.patch
new file mode 100644
index 0000000000..000fd4aca5
--- /dev/null
+++ b/recipes/llvm/llvm-2.5/fix-build.patch
@@ -0,0 +1,24 @@
+Index: llvm-2.5/tools/llvm-config/CMakeLists.txt
+===================================================================
+--- llvm-2.5.orig/tools/llvm-config/CMakeLists.txt 2009-01-07 20:24:44.000000000 +0100
++++ llvm-2.5/tools/llvm-config/CMakeLists.txt 2009-03-20 14:18:37.637615308 +0100
+@@ -83,13 +83,13 @@
+ COMMENT "Checking for cyclic dependencies between LLVM libraries.")
+
+ add_custom_command(OUTPUT ${LLVM_CONFIG}
+- COMMAND echo 's,@LLVM_CPPFLAGS@,${CMAKE_CPP_FLAGS},' > temp.sed
+- COMMAND echo 's,@LLVM_CFLAGS@,${CMAKE_C_FLAGS},' >> temp.sed
+- COMMAND echo 's,@LLVM_CXXFLAGS@,${CMAKE_CXX_FLAGS},' >> temp.sed
++ COMMAND echo 's!@LLVM_CPPFLAGS@!${CMAKE_CPP_FLAGS}!' > temp.sed
++ COMMAND echo 's!@LLVM_CFLAGS@!${CMAKE_C_FLAGS}!' >> temp.sed
++ COMMAND echo 's!@LLVM_CXXFLAGS@!${CMAKE_CXX_FLAGS}!' >> temp.sed
+ # TODO: Use general flags for linking, not just for shared libs:
+- COMMAND echo 's,@LLVM_LDFLAGS@,${CMAKE_SHARED_LINKER_FLAGS},' >> temp.sed
+- COMMAND echo 's,@LIBS@,,' >> temp.sed # TODO: System libs
+- COMMAND echo 's,@LLVM_BUILDMODE@,${CMAKE_BUILD_TYPE},' >> temp.sed
++ COMMAND echo 's!@LLVM_LDFLAGS@!${CMAKE_SHARED_LINKER_FLAGS}!' >> temp.sed
++ COMMAND echo 's!@LIBS@!!' >> temp.sed # TODO: System libs
++ COMMAND echo 's!@LLVM_BUILDMODE@!${CMAKE_BUILD_TYPE}!' >> temp.sed
+ COMMAND sed -f temp.sed < ${LLVM_CONFIG_IN} > ${LLVM_CONFIG}
+ COMMAND ${CMAKE_COMMAND} -E remove -f temp.sed
+ COMMAND cat ${FINAL_LIBDEPS} >> ${LLVM_CONFIG}