unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [Patch] configure.in: Find library of sched_yield
@ 2003-06-18 10:27 Matthias Koeppe
  2003-07-27 14:19 ` Marius Vollmer
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Koeppe @ 2003-06-18 10:27 UTC (permalink / raw)


On Solaris, when compiling Guile from CVS HEAD with
--with-threads=yes, Guile cannot be linked because the symbol
`sched_yield' is unresolved.

The following patch arranges that at configure time, the library is
searched that is needed to define `sched_yield'.

--- configure.in.~1.220.~	Mon Jun 16 16:49:24 2003
+++ configure.in	Wed Jun 18 11:34:51 2003
@@ -906,6 +907,10 @@
       AC_DEFINE_UNQUOTED(SCM_MUTEX_RECURSIVE, $guile_cv_have_mutex_recursive,
     	 [The mutex kind enum for recursive mutexes.])
     fi
+    
+    # On Solaris, sched_yield lives in -lrt.
+    AC_SEARCH_LIBS(sched_yield, rt)
+    
   ;;
 esac
 
-- 
Matthias Koeppe -- http://www.math.uni-magdeburg.de/~mkoeppe


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch] configure.in: Find library of sched_yield
  2003-06-18 10:27 [Patch] configure.in: Find library of sched_yield Matthias Koeppe
@ 2003-07-27 14:19 ` Marius Vollmer
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Vollmer @ 2003-07-27 14:19 UTC (permalink / raw)
  Cc: guile-devel

Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de> writes:

> The following patch arranges that at configure time, the library is
> searched that is needed to define `sched_yield'.

Applied!  Thanks!

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-27 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-18 10:27 [Patch] configure.in: Find library of sched_yield Matthias Koeppe
2003-07-27 14:19 ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).