Skip Menu |

This queue is for tickets about the Alien-wxWidgets CPAN distribution.

Report information
The Basics
Id: 52888
Status: resolved
Priority: 0/
Queue: Alien-wxWidgets

People
Owner: Nobody in particular
Requestors: IKEGAMI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.47
Fixed in: (no value)



Subject: Using cl as the linker when using MS compiler
In lib/Alien/wxWidgets/Utility.pm my $b = ExtUtils::CBuilder->new( config => { cc => $cc, ld => $cc }, quiet => 1, ); is wrong when using MS's tools. The linker is different than the compiler. I worked around it by doing my $b = ExtUtils::CBuilder->new( config => { cc => $cc, ld => $cc eq 'cl' ? 'link' : $cc }, quiet => 1, ); But it still seems very wrong to me. Why do you specify a compiler and linker, but take the compiler and linker options from Config.pm?
On Fri Dec 18 02:20:56 2009, ikegami wrote: Show quoted text
> But it still seems very wrong to me. Why do you specify a compiler and > linker, but take the compiler and linker options from Config.pm?
Because %Config has the options for a C compiler/linker, I need to check for a C++ compiler. Regards, Mattia
CC: IKEGAMI [...] cpan.org
Subject: Re: [rt.cpan.org #52888] Using cl as the linker when using MS compiler
Date: Fri, 18 Dec 2009 11:12:28 -0500
To: bug-Alien-wxWidgets [...] rt.cpan.org
From: Eric Brine <ikegami [...] adaelis.com>
On Fri, Dec 18, 2009 at 9:50 AM, Mattia Barbon via RT < bug-Alien-wxWidgets@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=52888 > > > On Fri Dec 18 02:20:56 2009, ikegami wrote:
> > But it still seems very wrong to me. Why do you specify a compiler and > > linker, but take the compiler and linker options from Config.pm?
> > Because %Config has the options for a C compiler/linker, I need to > check for a C++ compiler. >
ExtUtils::CBuilder reads %Config. Anything you pass to ExtUtils::CBuilder->new(config => {...}) *overrides* %Config, making it fail when suing MS's compilers. If your intent is for ExtUtils::CBuilder to use $Config{cc} and $Config{ld}, just use ExtUtils::CBuilder->new(silent => 1). If that's not your intention, I did not understand when you said.
CC: IKEGAMI [...] cpan.org
Subject: Re: [rt.cpan.org #52888] Using cl as the linker when using MS compiler
Date: Fri, 18 Dec 2009 11:15:31 -0500
To: bug-Alien-wxWidgets [...] rt.cpan.org
From: Eric Brine <ikegami [...] adaelis.com>
On Fri, Dec 18, 2009 at 9:50 AM, Mattia Barbon via RT < bug-Alien-wxWidgets@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=52888 > > > On Fri Dec 18 02:20:56 2009, ikegami wrote:
> > But it still seems very wrong to me. Why do you specify a compiler and > > linker, but take the compiler and linker options from Config.pm?
> > Because %Config has the options for a C compiler/linker, I need to > check for a C++ compiler. >
oh, I think the you're talking about C vs C++. Makes sense. I guess you need to do something similar for the linker.
Fixed by Alien::wxWidgets 0.48.