Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2011 09:35:30 +1100 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Colin Percival <cperciva@FreeBSD.org>
Cc:        freebsd-bugs@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org
Subject:   Re: bin/155000: make(1) doesn't handle .POSIX: correctly
Message-ID:  <20110225093104.W1474@besplex.bde.org>
In-Reply-To: <20110224112657.38420.qmail@xps.daemonology.net>
References:  <20110224112657.38420.qmail@xps.daemonology.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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