This is the mail archive of the gcc@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]
Other format: [Raw text]

Building gcc 3.2.1 on Solaris 8/sparc with native cc


How do I tell gcc-3.2.1 to not use the gcc in my $PATH, but use the cc I
have installed?

I'm trying:

	rfhs8012% ./configure --without-gcc --with-no-gcc --without-gnu-cc \
		--without-gnu-gcc --host=sparc-sun-solaris2.8 --enable-shared \
		--prefix=/soft/gcc-3.2.1-SunOS-5.8
	creating cache ./config.cache
	checking LIBRARY_PATH variable... ok
	checking GCC_EXEC_PREFIX variable... ok
	checking host system type... sparc-sun-solaris2.8
	checking target system type... sparc-sun-solaris2.8
	checking build system type... sparc-sun-solaris2.8
===>	checking for gcc... gcc
===>	checking whether the C compiler (gcc  ) works... yes
===>	checking whether the C compiler (gcc  ) is a cross-compiler... no

Paths are:
	rfhs8012% which cc
	/soft/SUNWspro/bin/cc
	rfhs8012% which gcc
	/soft/bin/gcc

I want the configure script to use the cc, not gcc. I have tried setting
the CC environemnt variable to /soft/SUNWspro/bin/cc, but that breaks
because the configure script passes "-O2" somewhere, which that compiler
doesn't understand.

What am I doing wrong? Help, plese! :-)


 - Hubert

-- 
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/


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