Nicholas Clark wrote:
On Sun, Jul 23, 2006 at 09:37:00AM -0400, David Golden wrote:
system( "$Config{cc} -o test$Config{obj_ext} test.c" )
Which, as a fall-back, is hopefully a bit more portable. Frankly, I'm not sure why it isn't just "$Config{cc} test.c", but I'm not very compiler savvy.

The simplest reason that springs to mind is "what was the output file called,
so that I can delete it?" I don't think that there's a standard across
operating systems.

I can see that. On the other hand, CPAN.pm doesn't "make clean" so the blib sticks around. One tiny object file wouldn't really bug me and it would be cleaned up when the cache is cleaned. But I guess it's better to clean up if one can. (Assuming -o is portable across most all compilers.)

Reply via email to