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 Message-ID: <3A637798.51059810@familiehaase.de> Date: Mon, 15 Jan 2001 22:20:08 +0000 From: Gerrit Peter Haase Reply-To: gerrit DOT haase AT t-online DOT de Organization: Esse keine toten Tiere X-Mailer: Mozilla 4.51 [de]C-CCK-MCD DT (Win98; I) X-Accept-Language: de MIME-Version: 1.0 To: Stephen Patterson CC: perl win32 list , cygwin AT cygwin DOT com Subject: Re: Compiling perl scripts References: <384300948 DOT 979570251881 DOT JavaMail DOT root AT web349-mc> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 320081107336-0001 AT t-dialin DOT net 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. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple