From 1bff258e44b63c1c532f922cf6d80a8f364e2889 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Fri, 8 May 2009 16:20:13 +0200 Subject: llvm2.6-native 2.5+svnr20090504: New recipe. llvm2.6 2.5+svnr20090504: New recipe. --- .../llvm/llvm2.6/llvm-fix-have_libpthread.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 recipes/llvm/llvm2.6/llvm-fix-have_libpthread.patch (limited to 'recipes/llvm/llvm2.6/llvm-fix-have_libpthread.patch') diff --git a/recipes/llvm/llvm2.6/llvm-fix-have_libpthread.patch b/recipes/llvm/llvm2.6/llvm-fix-have_libpthread.patch new file mode 100644 index 0000000000..f1072d9af9 --- /dev/null +++ b/recipes/llvm/llvm2.6/llvm-fix-have_libpthread.patch @@ -0,0 +1,29 @@ +Index: trunk/include/llvm/Config/config.h.cmake +=================================================================== +--- trunk.orig/include/llvm/Config/config.h.cmake 2009-05-06 16:39:19.957841609 +0200 ++++ trunk/include/llvm/Config/config.h.cmake 2009-05-06 16:39:20.185842055 +0200 +@@ -194,7 +194,7 @@ + #cmakedefine HAVE_LIBPSAPI ${HAVE_LIBPSAPI} + + /* Define to 1 if you have the `pthread' library (-lpthread). */ +-#undef HAVE_LIBPTHREAD ++#cmakedefine HAVE_LIBPTHREAD ${HAVE_LIBPTHREAD} + + /* Define to 1 if you have the `udis86' library (-ludis86). */ + #undef HAVE_LIBUDIS86 +Index: trunk/cmake/config-ix.cmake +=================================================================== +--- trunk.orig/cmake/config-ix.cmake 2009-05-06 16:49:45.121841057 +0200 ++++ trunk/cmake/config-ix.cmake 2009-05-06 16:50:25.738552620 +0200 +@@ -98,6 +98,11 @@ + if( HAVE_PTHREAD_H OR WIN32 ) + set(ENABLE_THREADS 1) + endif() ++ ++# FIXME: Actually check for the library ++ if( HAVE_PTHREAD_H ) ++ set(HAVE_LIBPTHREAD 1) ++ endif() + endif() + + if( ENABLE_THREADS ) -- cgit v1.2.3