Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2004 19:43:53 -0500
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: I like SCHED_4BSD
Message-ID:  <20040312004353.GA17510@crodrigues.org>
In-Reply-To: <20040312001815.GA77080@troutmask.apl.washington.edu>
References:  <XFMail.20040310213645.conrads@cox.net> <4050BBCB.50302@cinci.rr.com> <p0600207abc766e01632a@[10.0.1.4]> <20040312001110.GA17148@crodrigues.org> <20040312001815.GA77080@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 11, 2004 at 04:18:15PM -0800, Steve Kargl wrote:
> > http://www.cs.utah.edu/~regehr/hourglass/
> 
> I looked at the site.  The web page states that hourglass required
> linuxthreads on FreeBSD.  You'll probably need to ask Daniel, David,
> or Julian (the KSE gang) how difficult it may be to port hourglass
> to use KSE and lpthread.

It's very easy actually.  I submitted a patch to John Regehr
at Utah, but he is a bit busy these days.  It compiled and
ran quite nicely, but I am not a scheduling guru, so don't
know how to analyze the results.




--- aclocal.m4.orig	Fri Mar  5 17:42:03 2004
+++ aclocal.m4	Fri Mar  5 17:42:13 2004
@@ -36,7 +36,7 @@
 
 # serial 10
 
-AC_PREREQ([2.54])
+AC_PREREQ([2.53])
 
 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
 # the ones we care about.
--- configure.ac.orig	Fri Mar  5 17:41:40 2004
+++ configure.ac	Fri Mar  5 14:10:33 2004
@@ -95,8 +95,11 @@
   on_unix='yes' ; 
   on_windows='no' ;;
 *freebsd*) 
-  LDFLAGS='-llthread -llgcc_r -L/usr/local/lib' ; 
-  CFLAGS='-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads' ;
+  os_version=`sysctl -n kern.osreldate`
+  if test $os_version -lt "502102"; then
+    LDFLAGS='-llthread -llgcc_r -L/usr/local/lib' ; 
+    CFLAGS='-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads' ;
+  fi
   on_unix='yes' ; 
   on_windows='no' ;;
 *cygwin*) 


-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc@crodrigues.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040312004353.GA17510>