summaryrefslogtreecommitdiff
path: root/recipes/llvm/llvm2.6/llvm-fix-have_libpthread.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-05-08 19:50:49 +0200
committerKoen Kooi <koen@openembedded.org>2009-05-08 19:50:49 +0200
commita2e23df3d5603c8534539a91e46d2bfda934a7d0 (patch)
treeeb6e27141a8d07350843bd17aea65c4da1102118 /recipes/llvm/llvm2.6/llvm-fix-have_libpthread.patch
parent8fecb42426d33e78eee8c332455a3c5b2fcdd2fd (diff)
parenta8a6e5f87723526cbb4e46672e6222a7caa29395 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/llvm/llvm2.6/llvm-fix-have_libpthread.patch')
-rw-r--r--recipes/llvm/llvm2.6/llvm-fix-have_libpthread.patch29
1 files changed, 29 insertions, 0 deletions
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 )