From owner-freebsd-questions@freebsd.org Wed Nov 18 21:46:13 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BBC15A32404 for ; Wed, 18 Nov 2015 21:46:13 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 8EAA41E3A for ; Wed, 18 Nov 2015 21:46:13 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from lowell-desk.lan (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id F271B33C26; Wed, 18 Nov 2015 16:38:05 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 4FA903980E; Wed, 18 Nov 2015 16:38:03 -0500 (EST) From: Lowell Gilbert To: Will Senn Cc: freebsd-questions@freebsd.org Subject: Re: gnu make and gcc References: <564C91DA.3040909@gmail.com> <20151118170424.6f085661.freebsd@edvax.de> <564CEBCB.4060201@gmail.com> reply-to: freebsd-questions@freebsd.org Date: Wed, 18 Nov 2015 16:38:03 -0500 In-Reply-To: <564CEBCB.4060201@gmail.com> (Will Senn's message of "Wed, 18 Nov 2015 15:21:15 -0600") Message-ID: <44bnart2dg.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2015 21:46:13 -0000 Will Senn 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.