Don't clobber /dev/null when compiling as root
authorLuciano Rocha <strange@nsk.no-ip.org>
Wed, 23 May 2007 20:50:16 +0000 (21:50 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 25 May 2007 22:01:09 +0000 (15:01 -0700)
commit1d81d5e3944dd5ac912150bc705fa7259eade541
treee2b2854cb4c660521d4e3b413c944816daaa800e
parent7f2f6e3cec8eca7710acdd0b82b095834aecd400
Don't clobber /dev/null when compiling as root

Compiling as root is highly discouraged, but some people do it anyway.
gcc_ok, however, can clobber /dev/null due to "-o /dev/null"; this is
bad.  Instead, write a temporary file and delete it.
13 files changed:
Makefile
com32/lib/MCONFIG
com32/libutil/Makefile
com32/modules/Makefile
com32/samples/Makefile
dos/Makefile
extlinux/Makefile
mbr/Makefile
memdisk/Makefile
menu/Makefile
mtools/Makefile
sample/Makefile
unix/Makefile