From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 25 00:20:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0538106566B for ; Fri, 25 Feb 2011 00:20:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 85C7D8FC08 for ; Fri, 25 Feb 2011 00:20:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1P0KB1Y056986 for ; Fri, 25 Feb 2011 00:20:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1P0KBcO056985; Fri, 25 Feb 2011 00:20:11 GMT (envelope-from gnats) Date: Fri, 25 Feb 2011 00:20:11 GMT Message-Id: <201102250020.p1P0KBcO056985@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Bruce Evans Cc: Subject: Re: bin/155000: make(1) doesn't handle .POSIX: correctly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bruce Evans List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2011 00:20:11 -0000 The following reply was made to PR bin/155000; it has been noted by GNATS. From: Bruce Evans To: Colin Percival Cc: 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 09:35:30 +1100 (EST) On Thu, 24 Feb 2011, Colin Percival wrote: >> Description: > > make(1) doesn't handle .POSIX: correctly. It sucks in sys.mk before it > reads the Makefile, and sys.mk has several instances of > .if defined(%POSIX) > to switch between POSIX and non-POSIX mode; because sys.mk is processed > first, there is no opportunity for a .POSIX: directive to take effect. > >> How-To-Repeat: > $ echo .POSIX: > Makefile > $ make -V CC > (prints "cc"; it should print "c89".) 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. Bruce