Date: Mon, 29 Oct 2001 12:55:04 -0700 From: Lyndon Nerenberg <lyndon@atg.aciworldwide.com> To: Giorgos Keramidas <charon@labs.gr> Cc: arch@FreeBSD.ORG Subject: GNU Compiler Symlinks Message-ID: <200110291955.f9TJt40H005077@atg.aciworldwide.com> In-Reply-To: Message from Giorgos Keramidas <charon@labs.gr> of "Sat, 27 Oct 2001 22:42:56 %2B0300." <20011027224256.A35705@hades.hell.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Giorgos" == Giorgos Keramidas <charon@labs.gr> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110291955.f9TJt40H005077>