This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: HP-UX 10.20 & g++ 2.95.2: Have to use -threads
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Re: HP-UX 10.20 & g++ 2.95.2: Have to use -threads
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Sat, 8 Jan 2000 18:05:32 -0500 (EST)
> I tried to find this in your FAQs, but without luck: If I want
> to compile a tiny C++ program (see attachment) on HP-UX 10.20 using
> g++ 2.95.2, then I have to use -threads on the g++ command line
Part of the problem is in configure. Under hpux 10.20, if configure
finds pthread.h, it enables threads. It is not possible to disable
threads with --enable-threads=no or --disable-threads. I discussed
this with Jeff a few months ago. I wanted to change configure so
that it disabled threads if pthread.h wasn't found. As a side effect,
the --enable-threads option would work.
I wanted to be able to disable threads because there is an unresolved
conflict with --enable-shared. The above problem is another reason
why forcing the use of threads when installed is wrong.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)