Changeset: e3cd9e47a471 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e3cd9e47a471
Modified Files:
        buildtools/conf/MonetDB.m4
Branch: default
Log Message:

fix linking on Solaris x64 (the ugly way), pthread is synonym for semaphore in 
MonetDB (common)


diffs (15 lines):

diff -r 0285c2b2093e -r e3cd9e47a471 buildtools/conf/MonetDB.m4
--- a/buildtools/conf/MonetDB.m4        Thu Oct 14 13:07:38 2010 +0200
+++ b/buildtools/conf/MonetDB.m4        Thu Oct 14 14:53:12 2010 +0200
@@ -2304,6 +2304,11 @@
                AC_SEARCH_LIBS(pthread_setschedprio, , 
                        AC_DEFINE(HAVE_PTHREAD_SETSCHEDPRIO, 1,
                                [Define if you have the pthread_setschedprio 
function]))
+               dnl this function very ugly is overloaded with semaphore stuff
+               dnl so we DO need to check for it, for platforms which have it
+               dnl in a separate lib, like Solaris
+               AC_SEARCH_LIBS(sem_wait, rt,
+                       [PTHREAD_LIBS="$PTHREAD_LIBS -lrt"])
                LIBS="$save_LIBS"
                CPPFLAGS="$save_CPPFLAGS"
 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to