From owner-freebsd-questions@freebsd.org Fri Nov 20 03:15:12 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 CE6F0A326A4 for ; Fri, 20 Nov 2015 03:15:12 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from homiemail-a57.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) by mx1.freebsd.org (Postfix) with ESMTP id B40841DC1 for ; Fri, 20 Nov 2015 03:15:12 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from homiemail-a57.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a57.g.dreamhost.com (Postfix) with ESMTP id E8AF2208078; Thu, 19 Nov 2015 19:15:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=ozzmosis.com; h=date:from :to:cc:subject:message-id:references:mime-version:content-type: in-reply-to; s=ozzmosis.com; bh=GsVAWppMAtZlw/AshMw7J7u6uWs=; b= UbWClSlsotmPEsC5t7wlsS0jXuw+1kB4YWMGR4nJz5khncxsrNs6zEKwZNY4CRm9 BIHa22SDS+JKbU25GOx8lv+hua2JhGk2MYZ8h7Omsg0IhL8GrOuA3GJL4LYlWgmU Lw5Rj40S7FOY09Ik3oSA2vJ4Q+9BzX1ep9e6vAJ4f5I= Received: from blizzard.ozzmosis.com (124-170-47-246.dyn.iinet.net.au [124.170.47.246]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: relay@ozzmosis.com) by homiemail-a57.g.dreamhost.com (Postfix) with ESMTPSA id 91435208076; Thu, 19 Nov 2015 19:15:05 -0800 (PST) Received: by blizzard.ozzmosis.com (Postfix, from userid 1001) id 3A253B5F; Fri, 20 Nov 2015 14:15:02 +1100 (AEDT) Date: Fri, 20 Nov 2015 14:15:02 +1100 From: andrew clarke To: freebsd-questions@freebsd.org Cc: Will Senn , Lowell Gilbert Subject: Re: gnu make and gcc Message-ID: <20151120031502.GA10028@ozzmosis.com> References: <564C91DA.3040909@gmail.com> <20151118170424.6f085661.freebsd@edvax.de> <564CEBCB.4060201@gmail.com> <44bnart2dg.fsf@lowell-desk.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44bnart2dg.fsf@lowell-desk.lan> User-Agent: Mutt/1.5.24 (2015-08-30) 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:15:12 -0000 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.)