Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Specify gcc version during make

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
Lost Dog
Posts: 249
Joined: 2006-08-11 21:54
Location: North of the Columbia River

Specify gcc version during make

#1 Post by Lost Dog »

Hi,

I'm pretty new to programing and in this case I'm pretty much just compiling with a few tweaks to the code.

How could I specify what gcc version to use during the "make" process? I'm trying to compile a tivoserver and it dies on gcc version 4.1 which is on my system. From reading about trying to make the mjpegtools you need to use gcc 3.4.

How can I temporarily use gcc 3.4 during the compile process?

Thanks!

User avatar
brain
Posts: 253
Joined: 2006-04-25 17:15

#2 Post by brain »

Depending on the Makfile, you can often do

Code: Select all

CC=/path/to/gcc-3.4 make

Harold
Posts: 1482
Joined: 2005-01-07 00:15
Been thanked: 3 times

#3 Post by Harold »

Go to /usr/bin/ and do ls -l gcc*. You will see that gcc is a symlink to gcc-x.x. Change that symlink to point to the version of gcc you want to use. There are other links in there that also need to be changed. Do ls -l *-4.1 to see what they are.

User avatar
Lost Dog
Posts: 249
Joined: 2006-08-11 21:54
Location: North of the Columbia River

#4 Post by Lost Dog »

Cool! Thanks for the help. I'll give this a try tonight when I get home.

User avatar
Lost Dog
Posts: 249
Joined: 2006-08-11 21:54
Location: North of the Columbia River

#5 Post by Lost Dog »

Using CC=/path... didn't seem to work.

I got everything compiled by ln -s to the older version...

Thanks!!!

Post Reply