Subject: | can_cc() in Makefile.PL is broken |
Date: | Wed, 17 Mar 2010 12:44:32 -0700 |
To: | bug-Params-Util [...] rt.cpan.org |
From: | Tatsuhiko Miyagawa <miyagawa [...] gmail.com> |
its Makefile.PL is doing can_cc() to check if an user has a working
compiler but it has bugs when ported from Module::Install, resulting
it's always checking if one of the directories in PATH exists and has
-x bit which should always be true.
12:39 xdg: miyagawa, can_cc and can_run look OO but are being called
as functions
12:39 xdg: So can_run("cc") => $self = "cc" and $cmd = ''
12:39 miyagawa: haha!
12:39 miyagawa: xdg++
12:39 xdg: Fresh pair of eyes
12:40 xdg: I'm guessing it was copied out of M::I
12:40 miyagawa: yeah the comment says that
12:40 miyagawa: but in case of M::I it's auto turned into a method
call by AUTOLOAD I guess
12:42 miyagawa: right, then $abs is always a bin directory
12:42 miyagawa: and -x $abs is right
--
Tatsuhiko Miyagawa