gnu make and gcc

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

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


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

More information about the freebsd-questions mailing list