On Wed, Mar 28, 2007 at 01:45:27PM +0100, Ian Campbell wrote:
> On Wed, 2007-03-28 at 21:27 +0900, Magnus Damm wrote:
> > On 3/16/07, Ian Campbell <[EMAIL PROTECTED]> wrote:
> > > This is necessary when running Xen with a 64 bit hypervisor and 32 bit
> > > domain 0 since the CPU crash notes will be 64 bit.
> > >
> > > Detecting the hypervisor archiecture requires libxenctrl and therefore 
> > > this
> > > support is optional and disabled by default.
> > >
> > > Signed-off-by: Ian Campbell <[EMAIL PROTECTED]>
> > [snip]
> > > +dnl find Xen control stack libraries
> > > +if test "$with_xen" = yes ; then
> > > +       AC_CHECK_HEADER(xenctrl.h, AC_CHECK_LIB(xenctrl, xc_version,
> > > +               [AC_DEFINE(HAVE_XENCTRL_H, 1) LIBS="$LIBS -lxenctrl"]))
> > > +fi
> > > +
> > 
> > Building for i386 against xen-3.0.4-testing-13139 seems to require
> > linking against pthread. Maybe this is just a side effect of a broken
> > cross-compiler setup on my part...
> 
> libxenctrl links against pthread but I thought that so long as the usage
> was contained completely within the library (which it is) -pthread
> wasn't required to link the app. I could be totally wrong though.

I _think_ that depends on how the linker wants to handle things.
So it might be just as well to add -lpthread in there to make
things a bit more robust. On the other hand, it may cause more problems
than it solves.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

_______________________________________________
fastboot mailing list
fastboot@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/fastboot

Reply via email to