Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-03-2006, 04:32 PM   #1
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
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
$ 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
LQ Newbie
Registered: Jul 2005
Location: Texas
Distribution: Slackware 12.2
Posts: 19

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


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 PM.

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