Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2015 16:38:03 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Will Senn <will.senn@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: gnu make and gcc
Message-ID:  <44bnart2dg.fsf@lowell-desk.lan>
In-Reply-To: <564CEBCB.4060201@gmail.com> (Will Senn's message of "Wed, 18 Nov 2015 15:21:15 -0600")
References:  <564C91DA.3040909@gmail.com> <20151118170424.6f085661.freebsd@edvax.de> <564CEBCB.4060201@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Will Senn <will.senn@gmail.com> writes:

> OK. So I installed gcc using pkg install gcc49, but when I did gmake
> on another project's gnu makefile, it fails with 'gmake: gcc: Command
> not found' I tried creating an alias for gcc, but got the same
> error.

If you mean "symbolic link" when you said alias, then yes, that should
have changed the behaviour.

>        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)

The gmake manual (in info) will help you out on these things.

> /usr/local/bin? Which by the way already had gcc48, sheesh.

Something else you installed must have needed gcc. gcc48 is the
currently default version of gcc in the ports system.



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