FAQ

On Sun, Jul 23, 2006 at 09:37:00AM -0400, David Golden wrote:

The approach in Params::Validate (and borrowed for version.pm) uses
ExtUtils::CBuilder, if installed, and otherwise tries manually against
the configured CC, rather than make:
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.

Nicholas Clark

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 19 of 33 | next ›
Discussion Overview
groupmodule-build @
categoriesperl
postedJul 18, '06 at 12:16a
activeJul 26, '06 at 7:09a
posts33
users9
websitecpan.org...

People

Translate

site design / logo © 2018 Grokbase