Specify gcc version during make

Need help with C, C++, perl, python, etc?

Specify gcc version during make

Postby Lost Dog » 2006-10-23 13:18

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
Lost Dog
 
Posts: 250
Joined: 2006-08-11 21:54
Location: North of the Columbia River

Postby brain » 2006-10-23 13:42

Depending on the Makfile, you can often do
Code: Select all
CC=/path/to/gcc-3.4 make
User avatar
brain
 
Posts: 253
Joined: 2006-04-25 17:15

Postby Harold » 2006-10-23 13:52

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.
Harold
 
Posts: 1502
Joined: 2005-01-07 00:15

Postby Lost Dog » 2006-10-23 14:38

Cool! Thanks for the help. I'll give this a try tonight when I get home.
User avatar
Lost Dog
 
Posts: 250
Joined: 2006-08-11 21:54
Location: North of the Columbia River

Postby Lost Dog » 2006-10-24 00:56

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

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

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


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable