LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-24-2006, 09:27 AM   #1
baosheng
Member
 
Registered: Oct 2004
Location: Lubbock, TX, USA
Distribution: Ubuntu 7.10
Posts: 74

Rep: Reputation: 15
how to specify the compiler when configure?


after I runned
apt-get install gcc
the default version of gcc is 4.0

then i typed
apt-get install gcc-3.4
to install gcc 3.4

Coz the gcc 4.0 can miscompile many code, I want to specify the compiler as gcc3.4
how can I do when compile?

thanks
 
Old 01-24-2006, 10:52 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Most programs will honor the CC environmental variable as pointing to the C Compiler. So, for example, if your gcc-3.4 is /usr/bin/gcc-3.4 (don't know if it is), do:
Code:
CC=/usr/bin/gcc-3.4 make
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
GCC 3.4.1 configure script needs CC compiler? battousai9439 Linux - Software 11 12-24-2004 01:33 PM
I am in a trouble between ./configure apache2 and c compiler babyboss Slackware 6 10-21-2004 08:57 AM
C compiler when running configure mr_a_ali Linux - General 9 08-18-2004 07:29 AM
./configure cant find a compiler habitue Linux - Software 18 10-15-2003 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration