This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: AIX status
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: AIX status
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Mon, 30 Oct 2000 17:43:53 -0500
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, libstdc++ at sources dot redhat dot com, Mark Mitchell <mark at codesourcery dot com>
- References: <bkoz@redhat.com> <200010302054.PAA25816@mal-ach.watson.ibm.com>
On Mon, Oct 30, 2000 at 03:54:42PM -0500, David Edelsohn wrote:
>
> The appended patch enables AIX pthreads (to match the multilib
> options) and selects the appropriate threads header, links
> mknumeric_limits with the pthreads library when appropriate.
WRT -lpthread...
Doesn't libtool track dependancies? (Assume for argument's sake that
libtool would work on AIX "as well" as it does on Linux today.) If we're
using libtool properly, we should be able to tell it to supply -lpthread
when needed, automatically.
I'm hoping to do something like this for -ldl, maybe.
> Remaining issues, other than libtool, include libio dependence on
> GNU libc's bits/stdio-lock.h (affecting all non-GNU targets) and
> _G_config.h defining _G_USING_THUNKS.
Yah. Do you still have that email in which I mentioned the problems with
the mutexes? I was going to bring that up, but I seem to have misplaced
that message.
Other than that... this part of the patch:
> *************** AC_DEFUN(GLIBCPP_ENABLE_THREADS, [
> *** 1384,1390 ****
> target_thread_file=''
> ;;
> xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
> ! xsolaris | xwin32 | xdce | xvxworks)
> target_thread_file=$enable_threads_flag
> ;;
> *)
> --- 1388,1394 ----
> target_thread_file=''
> ;;
> xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
> ! xsolaris | xwin32 | xdce | xvxworks | xaix)
> target_thread_file=$enable_threads_flag
> ;;
> *)
> *************** AC_DEFUN(GLIBCPP_ENABLE_THREADS, [
> *** 1398,1403 ****
> --- 1402,1417 ----
> case "$target_thread_file" in
> no | none | single)
> THREADH=threads-no.h
> + ;;
> + aix)
> + case "$CXX" in
> + *pthread*)
> + THREADH=threads-posix.h
> + ;;
> + *)
> + THREADH=threads-no.h
> + ;;
> + esac
> ;;
> posix | pthreads)
> THREADH=threads-posix.h
...bothers me. The thread targets aren't for "posix under machine X,"
they're for entirely different kinds of threads. If you want to use posix
threads, then we need to make --enable-threads=posix work properly, rather
than introducing a "synonym wrapper". IMO.
Phil