Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Apparently-From: Message-ID: <3A6370D0.14766C7D@yahoo.com> Date: Mon, 15 Jan 2001 16:51:12 -0500 From: Earnie Boyd Reply-To: Earnie Boyd 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 , perl win32 list , 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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