delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/15/16:54:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3A6370D0.14766C7D@yahoo.com>
Date: Mon, 15 Jan 2001 16:51:12 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: gerrit DOT haase AT t-online DOT de
CC: Stephen Patterson <fileysurgery AT techie DOT com>,
perl win32 list <perl-win32-users AT listserv1 DOT ActiveState DOT com>,
cygwin AT cygwin DOT com
Subject: Re: Compiling perl scripts
References: <384300948 DOT 979570251881 DOT JavaMail DOT root AT web349-mc> <3A637798 DOT 51059810 AT familiehaase DOT de>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019