From owner-freebsd-questions@freebsd.org Fri Nov 20 03:26:45 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 F1BC1A3290A for ; Fri, 20 Nov 2015 03:26:45 +0000 (UTC) (envelope-from will.senn@gmail.com) Received: from mail-yk0-x236.google.com (mail-yk0-x236.google.com [IPv6:2607:f8b0:4002:c07::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A6B2B12EA for ; Fri, 20 Nov 2015 03:26:45 +0000 (UTC) (envelope-from will.senn@gmail.com) Received: by ykfs79 with SMTP id s79so143084051ykf.1 for ; Thu, 19 Nov 2015 19:26:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=lxLeN4WLh4heEgSejbLWbYLS/RogLkdNHT9/mbUCzzo=; b=riqQP/W64YeW3nTyyhbHMINuWwRj2e/lAKNce7eh3XyoyQvIH40JT/rDSJhBBh7veJ bgUoyAPZeybFKnuaGIKqxNiAEWtFxL94vuifYBXbN774roUHsbMmEa5qWAbf6i3l40cB E66QFrM814SXMir8wPpjt8ivBE6qRaIr90QeDQ7Ndr7vRueBlV224Adt6XD/3ndZs5DY pX3dGQBboskiUUUC9zg7Ydg9ViO7r21CVb2akIMFx+sf5YewR1XN31MBJVR0+D5KWhRU cNO/yeGhDD+OFdiJo+7dYtyT//GNEKlC8n6KL1cH1ylthrX7IVctkxvF9hl78zR5K6Qc JUrQ== X-Received: by 10.13.231.69 with SMTP id q66mr10265242ywe.299.1447990004815; Thu, 19 Nov 2015 19:26:44 -0800 (PST) Received: from [192.168.0.4] ([206.251.219.82]) by smtp.gmail.com with ESMTPSA id u190sm11622381ywd.17.2015.11.19.19.26.43 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Nov 2015 19:26:44 -0800 (PST) Subject: Re: gnu make and gcc To: freebsd-questions@freebsd.org References: <564C91DA.3040909@gmail.com> <20151118170424.6f085661.freebsd@edvax.de> <564CEBCB.4060201@gmail.com> <44bnart2dg.fsf@lowell-desk.lan> <20151120031502.GA10028@ozzmosis.com> From: Will Senn Message-ID: <564E92F3.9060404@gmail.com> Date: Thu, 19 Nov 2015 21:26:43 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151120031502.GA10028@ozzmosis.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 20 Nov 2015 03:26:46 -0000 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@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.