Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2011 02:20:10 GMT
From:      Bruce Evans <brde@optusnet.com.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/155000: make(1) doesn't handle .POSIX: correctly
Message-ID:  <201102250220.p1P2KA9Y089452@freefall.freebsd.org>

index | next in thread | raw e-mail

The following reply was made to PR bin/155000; it has been noted by GNATS.

From: Bruce Evans <brde@optusnet.com.au>
To: Colin Percival <cperciva@FreeBSD.org>
Cc: Bruce Evans <brde@optusnet.com.au>, FreeBSD-gnats-submit@FreeBSD.org,
        freebsd-bugs@FreeBSD.org
Subject: Re: bin/155000: make(1) doesn't handle .POSIX: correctly
Date: Fri, 25 Feb 2011 13:13:09 +1100 (EST)

 On Thu, 24 Feb 2011, Colin Percival wrote:
 
 > On 02/24/11 14:35, Bruce Evans wrote:
 >> Except that there is the opportunity to set %POSIX using make -D.  This
 >> might be enough in practice.  The namespace pollution avoidance is
 >> too perfect -- there seems to be no way to set %POSIX or .POSIX in the
 >> environment.
 >
 > Is this relevant?  POSIX says that the Right Way to demand POSIX mode is
 > to put .POSIX on the first non-comment line of the Makefile; our %POSIX
 > variable is a red herring as far as POSIX is concerned.
 
 It allows A Way.
 
 Of course you should fix make(1) to support the POSIX way if this is
 not too hard.  If make can see .POSIX before including sys.mk, then
 it could alternatively include a POSIX-sys.mk instead.  This would be
 cleaner than the ifdefs in sys.mk, and would inhibit breakage of the
 POSIX case by putting things like CTF in its rules.
 
 Bruce


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102250220.p1P2KA9Y089452>