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

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
Message-ID: <3A637798.51059810@familiehaase.de>
Date: Mon, 15 Jan 2001 22:20:08 +0000
From: Gerrit Peter Haase <gerrit AT familiehaase DOT de>
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 <fileysurgery AT techie DOT com>
CC: 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>
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

- Raw text -


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