gnu make and gcc

andrew clarke mail at ozzmosis.com
Fri Nov 20 03:15:12 UTC 2015


On Wed 2015-11-18 16:38:03 UTC-0500, Lowell Gilbert (freebsd-questions-local at 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.)


More information about the freebsd-questions mailing list