gnu make and gcc

Will Senn will.senn at gmail.com
Fri Nov 20 03:26:46 UTC 2015


On 11/19/15 9:15 PM, andrew clarke wrote:
> 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.)
Thanks, this's exactly what I was looking for.



More information about the freebsd-questions mailing list