public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Makefile gcc -o /dev/null: the dissapearing of /dev/null
@ 2001-09-29  7:55 proton
  2001-09-29  9:43 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 9+ messages in thread
From: proton @ 2001-09-29  7:55 UTC (permalink / raw)
  To: linux-kernel

I noticed this a long time ago in the Linux kernel
makefiles, I thought someone would have figured it
out by now tho.

The `gcc -o /dev/null' is a really neat way of
testing if gcc works or not.

Unfortunatly it doesnt work that well if you're root.

You see, gcc uses unlink(). /dev/null doesnt take
kindly to that kind of treatment...

Ofcourse, you cant unlink /dev/null unless you are root.

In any case, the `gcc -o /dev/null' test cases probably
need to go away.

I've seen this in linux/arch/i386/Makefile for 2.4.10,
it probably exists in all previous versions as well as
in other Makefiles.

Happy kernel hacking!

/proton
ps. any replies [read: flames] would do well being CC'd
to me since I dont subscribe to linux-kernel :)
[ http://www.energymech.net/users/proton/ ]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-10-01 18:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-29  7:55 Makefile gcc -o /dev/null: the dissapearing of /dev/null proton
2001-09-29  9:43 ` Jan-Benedict Glaw
2001-09-29 13:10   ` Jim Treadway
2001-09-29 18:21     ` Jan-Benedict Glaw
2001-09-30  3:03       ` Jim Treadway
2001-10-01 14:46       ` Rob Landley
2001-09-29 18:36     ` J.H.M. Dassen (Ray)
2001-09-30 14:24     ` Olaf Titz
2001-09-30 23:47       ` Jim Treadway

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox