From owner-freebsd-ports@FreeBSD.ORG Sat Mar 16 14:15:18 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 86C40B73 for ; Sat, 16 Mar 2013 14:15:18 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) by mx1.freebsd.org (Postfix) with ESMTP id 4AA36FBB for ; Sat, 16 Mar 2013 14:15:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=UguxWBo/hrpXvzYuWUDz2O5t7rHzqEv18UjiWnMWRHI=; b=EmlS1pbtUnbQl9lZ1NkF8748HJfKE+mcrFCpKu/nsd42jXsKMtUYrqmw7KuZiT9mMecwRD4ZQGrmD56r8l7Dxc83CQ2dml1AAAGf2sucyldVTSywkiQ3Y/68tAWDIaIoJWnoFO8uv9/vOx5J7wLpl5cVPCEsC2DKCUNARc4rCZU=; Received: from [122.129.203.50] (port=15443 helo=X220.ovitrap.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1UGrtE-0038te-AN; Sat, 16 Mar 2013 08:15:17 -0600 Date: Sat, 16 Mar 2013 21:15:11 +0700 From: Erich Dollansky To: Eitan Adler Subject: Re: How can I switch compiler from clang to gcc46? Message-ID: <20130316211511.1d22eb6b@X220.ovitrap.com> In-Reply-To: References: <1363438889978-5796040.post@n5.nabble.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-ports@freebsd.org, Beeblebrox X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Mar 2013 14:15:18 -0000 Hi, On Sat, 16 Mar 2013 10:04:41 -0400 Eitan Adler wrote: > On 16 March 2013 09:01, Beeblebrox wrote: > > I need to compile a source not in the ports tree. The source needs > > to use the gcc compiler (I have lang gcc (46) installed). Sourec > > make file complains it cannot find gcc46. > > > > To test, I placed in my environment: > > setenv CC gcc46 > > setenv CXX g++46 > > setenv CPP cpp46 > > > > When I do "cc -v" I still get clang output and not gcc46. What am I > > doing wrong here? > > cc is a program. If you want to use the environment variables try > using "$CC -v". If you want help to make your makefile to use $CC > instead of 'cc' you will need to provide the Makefile as an attachment > so we can see what it is doing. > why not set this as an alias? Of course, with the full path. Erich