From owner-freebsd-arch Mon Oct 29 11:55:15 2001 Delivered-To: freebsd-arch@freebsd.org Received: from atg.aciworldwide.com (h139-142-180-4.gtcust.grouptelecom.net [139.142.180.4]) by hub.freebsd.org (Postfix) with ESMTP id 9781B37B401 for ; Mon, 29 Oct 2001 11:55:06 -0800 (PST) Received: from atg.aciworldwide.com (atg.aciworldwide.com [139.142.180.33]) by atg.aciworldwide.com (8.12.0/8.12.0) with ESMTP id f9TJt40H005077; Mon, 29 Oct 2001 12:55:05 -0700 (MST) Message-Id: <200110291955.f9TJt40H005077@atg.aciworldwide.com> Organization: ACI Worldwide - Advanced Technology Group X-URL: http://www.aciworldwide.com/ X-Notes-Item: Just say NO to Notes! To: Giorgos Keramidas Cc: arch@FreeBSD.ORG Subject: GNU Compiler Symlinks In-Reply-To: Message from Giorgos Keramidas of "Sat, 27 Oct 2001 22:42:56 +0300." <20011027224256.A35705@hades.hell.gr> Date: Mon, 29 Oct 2001 12:55:04 -0700 From: Lyndon Nerenberg Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> "Giorgos" == Giorgos Keramidas writes: Giorgos> In that case, I stand corrected :) If the default will be Giorgos> to still make a link cc -> gcc (and all their friends, Giorgos> like c++, etc), then this does not soundn like a bad Giorgos> idea. Not bad at all. Just to clarify, I am not proposing that /usr/bin/c{c,++} be changed in any way. What I'm proposing is (example only): --- /usr/src/gnu/usr.bin/cc/cc/Makefile 2001/10/29 19:35:26 1.1 +++ Makefile 2001/10/29 19:40:03 @@ -5,11 +5,14 @@ .PATH: ${GCCDIR} PROG= cc -MAN= gcc.1 +MAN= cc.1 SRCS= gcc.c gccspec.c +.if !defined(NO_GNU_NAMES) LINKS= ${BINDIR}/cc ${BINDIR}/gcc -MLINKS= gcc.1 cc.1 gcc.1 c++.1 gcc.1 g++.1 gcc.1 CC.1 +MLINKS= cc.1 gcc.1 cc.1 g++.1 +.endif +MLINKS+= cc.1 CC.1 cc.1 c++.1 CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\" CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\" NO_GNU_NAMES=true simply disables the creation of links to the "GNUish" name variants where the GNU tool is installed as part of the base system This appears to only affect the gcc and g++ commands. A couple of people have mentioned that the gcc name has become a defacto standard, so we should just live with it. I don't think that's true. I've run stable for ages without these links, and the only breakage was in a couple of ports, and even those have since been fixed. A more important reason for removing the links is to help with application portability. If you're using FreeBSD as a primary development platform for portable applications, not having gratuitous GNUisms (be they names, or things like awk extensions) makes life easier. --lyndon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message