[kaffe] CVS kaffe (guilhem): Fixed semaphore.

Kaffe CVS cvs-commits at kaffe.org
Sun Feb 6 09:49:33 PST 2005


PatchSet 5485 
Date: 2005/02/06 17:40:30
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixed semaphore.

Members: 
	m4/semaphore.m4:1.2->1.3 

Index: kaffe/m4/semaphore.m4
diff -u kaffe/m4/semaphore.m4:1.2 kaffe/m4/semaphore.m4:1.3
--- kaffe/m4/semaphore.m4:1.2	Sun Nov 28 13:08:33 2004
+++ kaffe/m4/semaphore.m4	Sun Feb  6 17:40:30 2005
@@ -10,6 +10,11 @@
 [
   AC_CHECK_HEADERS([semaphore.h])
   AC_MSG_CHECKING([for working semaphores])
+  old_LDFLAGS="$LDFLAGS"
+  old_CFLAGS="$CFLAGS"
+  LDFLAGS="$LDFLAGS $THREADLIBS $SEMAPHORE_LIB"
+  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+
   AC_RUN_IFELSE(AC_LANG_PROGRAM(
 [
 #include <semaphore.h>
@@ -28,4 +33,6 @@
 	AC_MSG_RESULT(cross compiling)
   ])
 
+  LDFLAGS="$old_LDFLAGS"
+  CFLAGS="$old_CFLAGS"
 ])




More information about the kaffe mailing list