From owner-freebsd-hackers Sun Jun 11 04:23:38 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id EAA16457 for hackers-outgoing; Sun, 11 Jun 1995 04:23:38 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id EAA16444 for ; Sun, 11 Jun 1995 04:23:34 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA05393; Sun, 11 Jun 1995 13:23:31 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id NAA05754 for freebsd-hackers@freebsd.org; Sun, 11 Jun 1995 13:23:30 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id MAA04832 for freebsd-hackers@freebsd.org; Sun, 11 Jun 1995 12:13:52 +0200 From: J Wunsch Message-Id: <199506111013.MAA04832@uriah.heep.sax.de> Subject: Posix [Was: Re: make doesn't like lines with a tab only] To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Sun, 11 Jun 1995 12:13:51 +0200 (MET DST) Reply-To: freebsd-hackers@freebsd.org (FreeBSD hackers) In-Reply-To: from "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= aka" at Jun 10, 95 09:09:38 pm Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1747 Sender: hackers-owner@freebsd.org Precedence: bulk [moved to -hackers] As =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= aka wrote: > > Thanx. Now only FreeBSD have this braindamage and only Rod tries > to defend it by false references to POSIX and other strange methods. > I hope everybody else agrees that we need to fix it > (after code freeze lifted). > If no objections comes, I'll commit the fix. But make it issuing a warning anyway. Posix neither clearly allows it nor does it clearly forbide it (it's only saying about "command", and there's never a definition saying the empty string were a valid command or not; at least, it's a very useless one). The warning will not bother those too much who're only caring for porting other software, while it will allow fixing bogus makefiles as well. When reading Posix, i don't think our ``make'' is very far away from a Posix-compliant make. The intention of Posix here is to define only a subset of required commands, while leaving all the usual extensions as implementation-specific. One thing that will be necessary is to default the CC variable to ``c89'' instead of ``cc''. Perhaps this should be done via some .ifdef coding and the pseudo-target ``.POSIX'' which is required for all Posix-compliant Makefiles. (Maybe `make' will require internal logic to transform the .POSIX into an internal macro.) `c89' itself is no big deal. A script as simple as #!/bin/sh exec cc -ansi $* should do it. Note that some vendor cc's might have more problems here since it appears that Posix requires the c89 to accept spaces after the -l, -L, and-I options as well (which gcc does). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)