Compiling perl scripts

Earnie Boyd earnie_boyd@yahoo.com
Mon Jan 15 13:50:00 GMT 2001


Gerrit Peter Haase wrote:
> 
> Stephen Patterson schrieb:
> >
> > How can I specify a compiler for perlcc to use?
> >
> > I have the cygnus linux(ish) toolkit, with gcc, g++ cc1 and make, does
> > anyone know how to tell perlcc to use any of these?
> >
> 
> >From perlcc, line 272-282 (for my perl):
> 
> sub cc_harness {
>         my ($cfile,$stash)=@_;
>         use ExtUtils::Embed ();
>         my $command = ExtUtils::Embed::ccopts." -o $Output $cfile ";
>         $command .= " -I".$_ for split /\s+/, opt(I);
>         $command .= " -L".$_ for split /\s+/, opt(L);
>         my @mods = split /-?u /, $stash;
>         $command .= " ".ExtUtils::Embed::ldopts("-std", \@mods);
>         vprint 3, "running cc $command";
>         system("cc $command");
> }
>               ^^^^^^^^
> 
> here is hardcoded 'cc' were your compiler needs to be called (gcc).
> 
> In Erics perl5.6.1-1 for cygwin, there is a patch aplied that fixes this.
> 

A simple `ln -s /bin/gcc /bin/cc' would work.

Chris, should setup or gcc-2.95.2-7 do this?

Cheers,
Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list