HP-UX 10.20 & g++ 2.95.2: Have to use -threads
John David Anglin
dave@hiauly1.hia.nrc.ca
Sat Jan 8 15:05:00 GMT 2000
> 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)
More information about the Gcc-bugs
mailing list