LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2006, 04:32 PM   #1
yellowwizard
LQ Newbie
 
Registered: Jul 2005
Location: Texas
Distribution: Slackware 12.2
Posts: 19

Rep: Reputation: 0
application links (GCC 4.4.1)


Okay, really quick question here.

I've just compiled GCC 4.4.1 from source and would like to link it so that the "make" command points to GCC 4.4.1 (as opposed to GCC 3.3.6, the version that comes in the full install of Slackware 10.2). What's the command I would use to do that? Thanks in advance!
 
Old 10-04-2006, 04:49 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Change the /usr/bin/gcc symlink to point to your preferred gcc (such as /usr/bin/gcc-4.1 for me) to change globally (at least that's how it works in debian). Or, whenever you make, run it as
Code:
$ CC=/usr/bin/gcc-4.1 make <target>
assuming that the makefile referers to CC and not cc or gcc. You probably need to supply arguments for CXX, CPP and other bits (see the Make manual).
 
Old 10-07-2006, 05:11 PM   #3
yellowwizard
LQ Newbie
 
Registered: Jul 2005
Location: Texas
Distribution: Slackware 12.2
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for the info, jonaskoelker!
 
  


Reply



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
Will C++ Application run in computer without gcc c-compiler srivembu Linux - General 4 09-03-2005 10:20 AM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 12:10 PM
Sym links and hard links akudewan Linux - Newbie 4 02-09-2005 05:08 AM
how to change relitive links to specific links? wolfe2554 Linux - General 4 07-03-2004 12:40 AM
Links Section updated - Please add your Linux links. jeremy Linux - General 2 11-24-2001 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 PM.

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