Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2015 14:15:02 +1100
From:      andrew clarke <mail@ozzmosis.com>
To:        freebsd-questions@freebsd.org
Cc:        Will Senn <will.senn@gmail.com>, Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
Subject:   Re: gnu make and gcc
Message-ID:  <20151120031502.GA10028@ozzmosis.com>
In-Reply-To: <44bnart2dg.fsf@lowell-desk.lan>
References:  <564C91DA.3040909@gmail.com> <20151118170424.6f085661.freebsd@edvax.de> <564CEBCB.4060201@gmail.com> <44bnart2dg.fsf@lowell-desk.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed 2015-11-18 16:38:03 UTC-0500, Lowell Gilbert (freebsd-questions-local@be-well.ilk.org) wrote:

> >        Is there some trick to making make think gcc49 is gcc or do I
> > need to go create symlinks for all of the gwhatever49 files in
> > /usr/local/bin?
> 
> CC=gcc
> (in the makefile)

Alternatively you can avoid modifying the makefile and instead run:

gmake CC=gcc

or:

gmake CC=gcc49

and the makefile's $(CC) variable will be overridden from the
command line. (This is also true for BSD Make, and most/all Make
clones.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151120031502.GA10028>