From owner-cvs-all@FreeBSD.ORG Fri Jun 3 01:42:55 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 238E116A41C; Fri, 3 Jun 2005 01:42:55 +0000 (GMT) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F245D43D48; Fri, 3 Jun 2005 01:42:54 +0000 (GMT) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j531gsbI005111; Fri, 3 Jun 2005 01:42:54 GMT (envelope-from edwin@repoman.freebsd.org) Received: (from edwin@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j531gsp5005110; Fri, 3 Jun 2005 01:42:54 GMT (envelope-from edwin) Message-Id: <200506030142.j531gsp5005110@repoman.freebsd.org> From: Edwin Groothuis Date: Fri, 3 Jun 2005 01:42:54 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/Mk bsd.gcc.mk X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 01:42:55 -0000 edwin 2005-06-03 01:42:54 UTC FreeBSD ports repository Modified files: Mk bsd.gcc.mk Log: USE_GCC=X.Y+ should prefer the stock compiler USE_GCC=3.2+ on a 6-CURRENT system prefers the GCC 3.2 compiler instead of the GCC 3.4 default system compiler. One often uses USE_GCC=3.2+ to enable a port to build on RELENG_4, but that does not mean a 6-CURRENT user doesn't want to use the native compiler. I also argue that the correct algorithm for USE_GCC=3.2+ is: 1. Use system compiler if it's version is allowable by the USE_GCC invocation. 2. Prefer the highest version # found already installed and allowed by the USE_GCC invocation, rather than the lowest. 3. Install the specified GCC version and use if, if no other already installed compiler meets the USE_GCC invocation. #1 and #3 are implemented with this patch, but #2 isn't. The reason for it is because there is no highest version # specifiable with the USE_GCC command. What could be made is that the USE_GCC command accepts two arguments, where the first is the lower version, the second is the upper version. Or USE_GCC=-4.0, where everything <= 4.0 is allowed. PR: ports/81116 Reviewed by: David O'Brien Revision Changes Path 1.3 +13 -4 ports/Mk/bsd.gcc.mk