This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: FreeBSD port (3): make check without linuxthreads
- From: Roland McGrath <roland at frob dot com>
- To: Bruno Haible <bruno at clisp dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 26 Aug 2002 02:58:11 -0700
- Subject: Re: FreeBSD port (3): make check without linuxthreads
> Since the aio implementation relies on pthreads, a build without
> linuxthreads needs to skip the aio tests.
It was wrong to put this change in, and I've taken it out now.
Not all aio implementations will necessarily depend on pthreads. The
proper fix is to have the tests exit without complaint when all the aio
calls fail with ENOSYS as the stub versions will. I have put that change in.
>
> 2002-07-06 Bruno Haible <bruno@clisp.org>
>
> * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
>
> diff -r -c3 glibc-20020627.bak/rt/Makefile glibc-20020627/rt/Makefile
> --- glibc-20020627.bak/rt/Makefile Sat Oct 20 20:12:02 2001
> +++ glibc-20020627/rt/Makefile Fri Jul 5 01:17:06 2002
> @@ -38,8 +38,10 @@
> $(clock-routines) $(timer-routines) \
> $(shm-routines)
>
> -tests := tst-shm tst-clock tst-timer \
> - tst-aio tst-aio64 tst-aio2 tst-aio3 tst-aio4 tst-aio5 tst-aio6
> +tests := tst-shm tst-clock tst-timer
> +ifeq ($(have-thread-library),yes)
> +tests += tst-aio tst-aio64 tst-aio2 tst-aio3 tst-aio4 tst-aio5 tst-aio6
> +endif
>
> extra-libs := librt
> extra-libs-others := $(extra-libs)