Re: using gcc/g++ 3.0 without uninstalling 2.95?
On Thu, Jan 17, 2002 at 03:46:09PM +0000, Colin Watson wrote:
| On Thu, Jan 17, 2002 at 10:19:40AM -0500, dman wrote:
| > On Thu, Jan 17, 2002 at 04:45:42AM -0600, Colin Watson wrote:
| > | Many makefiles will also be happy with you setting CC=gcc-3.0 and
| > | CXX=gcc-3.0 in the environment.
| >
| > How does one create such a Makefile? The makefile for a particular
| > piece of software I compiled didn't take the values I stuck in the
| > environment, but it worked when I edited the makefile.
|
| Sorry, my mistake - I should have said that you need to put 'CC=gcc-3.0'
| on make's command line, rather than in the environment. For instance:
|
| [cjwatson@arborlon ~]$ cat test.mk
| CC = gcc
| all:
| echo $(CC)
| [cjwatson@arborlon ~]$ make -f test.mk
| echo gcc
| gcc
| [cjwatson@arborlon ~]$ make -f test.mk CC=gcc-3.0
| echo gcc-3.0
| gcc-3.0
|
| This will work unless somebody has used an 'override' command in the
| Makefile, but fortunately that's very rare.
Oh, sweet, that's the trick that works. Thanks!
-D
--
Stay away from a foolish man,
for you will not find knowledge on his lips.
Proverbs 14:7
Reply to: