This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: HP-UX 10.20 & g++ 2.95.2: Have to use -threads


> 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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]