This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Erroneous -mt on Solaris i386
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: joelbberk at netscape dot net
- Cc: gcc at gcc dot gnu dot org
- Date: 09 Mar 2006 11:24:11 +0100
- Subject: Re: Erroneous -mt on Solaris i386
- References: <7B3101D2.22564F8B.031A8834@netscape.net>
joelbberk@netscape.net writes:
> I compiled gcc 3.4.5 on an i386 pc under Solaris 10 with posix threads.
> When I try to compile certain downloaded tarballs (especially those that
> use the gtk+ libs) gcc passes "-mt" to cc1, which chokes with an "illegal
> option error" message. The gcc docs say that this option is for the IA64
> on HPUX. What can be done to fix this problem? My workaround has been
> to edit out any reference to -m options in the specs file, but I am
> hoping there is a way to recompile gcc so that I don't have to do this.
> Any suggestions would be appreciated.
You're wrong to pass -mt to gcc on Solaris (both SPARC and x86) in the
first place; right now, this flag is specific to the Sun compilers,
although it would be useful to support them in gcc, too, for cc/CC
compatibility.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University