Subject: misc/15843: USE_NEW_TOOLCHAIN=no doesn't always work
To: None <gnats-bugs@gnats.netbsd.org>
From: Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
List: netbsd-bugs
Date: 03/09/2002 17:27:23
>Number: 15843
>Category: misc
>Synopsis: make USE_NEW_TOOLCHAIN=no doesn't work
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 08 20:28:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Lloyd Parkes
>Release: NetBSD 1.5ZA
>Organization:
Must Have Coffee
>Environment:
System: NetBSD ophidian.must-have-coffee.gen.nz 1.5ZA NetBSD 1.5ZA (GENERIC) #4: Sat Feb 23 11:24:21 NZDT 2002 lloyd@ophidian.must-have-coffee.gen.nz:/vol/NetBSD/build/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
'make USE_NEW_TOOLCHAIN=no' doesn't work because the code used by
bsd.own.mk uses .undef and you can't .undef a variable set on the
command line. Since the command line is where most people are likely
to put ad-hoc variables, this makes a quick test of
USE_NEW_TOOLCHAIN=no more difficult than it needs to be.
I have labelled the priority medium rather than low because I went
bugfuck trying to work out why 'make USE_NEW_TOOLCHAIN=no' didn't
work.
>How-To-Repeat:
make -dcv USE_NEW_TOOLCHAIN=no
Watch the .undef get executed, and then watch CPPFLAG_ISYSTEM get set
to -isystem.
>Fix:
It would be nice to make bsd.own.mk abort make if the .undef of
USE_NEW_TOOLCHAIN doesn't work. I don't know how to make abort.
>Release-Note:
>Audit-Trail:
>Unformatted:
Version 1.269 of bsd.own.mk