summaryrefslogtreecommitdiff
path: root/recipes/llvm/llvm2.6/llvm-fix-have_libpthread.patch
blob: f1072d9af9a07b913fb29e66ffe506016a076a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 )