Re: [Module::Build] have_c_compiler uncovers Windoze bug
Status: Beta
Brought to you by:
kwilliams
|
From: Randy W. S. <Ra...@Th...> - 2003-11-29 16:48:30
|
On 11/29/2003 11:31 AM, Ken Williams wrote: > > I'm not sure I understand the patch, though. It seems to just create a > boot_compilet() C function, and make sure quotes are stripped from the > object filename. How does this fix the issue? > > -Ken The problem is that the code in compile_c() and link_c(), on Windows specifically, but also M::B in general, is written to produce a dynamic perl module library. In Windows land an executable requires a different set of flags, etc to produce an executable file. So, instead of writting a lot of new scaffolding to compile an executable for the three different compilers on Windows, the patch basically adds enough to complete a minimal, skeletal, perl library. Without the boot_compilet() function, the linker would report an undefined reference to external symbol or something like. I'm probably not explaining this well, but hopefully enough to make at least a little sense. Randy. |